From 6e64a41d8b74f09e5dd0e4fa6ef62b57c797e10d Mon Sep 17 00:00:00 2001 From: jeffry <36665036+wangxin688@users.noreply.github.com> Date: Fri, 26 Jul 2024 03:55:00 +0000 Subject: [PATCH] fix: lint error --- ezsnmp/session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ezsnmp/session.py b/ezsnmp/session.py index 5fa5034a..44498ec9 100644 --- a/ezsnmp/session.py +++ b/ezsnmp/session.py @@ -32,7 +32,7 @@ def build_varlist( oids: Union[List[Union[str, Tuple[str, str]]], Union[str, Tuple[str, str]]], -) -> tuple[List[SNMPVariable], bool]: +) -> Tuple[List[SNMPVariable], bool]: """ Prepare the variable binding list which will be used by the C interface. @@ -66,7 +66,7 @@ def build_varlist( return varlist, is_list -def validate_results(varlist: list[SNMPVariable])->None: +def validate_results(varlist: list[SNMPVariable]) -> None: """ Validates a list of SNMPVariable objects and raises any appropriate exceptions where necessary. @@ -332,7 +332,7 @@ def get( # Return a list or single item depending on what was passed in return list(varlist) if is_list else varlist[0] - def set(self, oid: Union[str, Tuple[str, str]], value: Any, snmp_type=None) -> bool: + def set(self, oid: Union[str, Tuple[str, str]], value: Any, snmp_type=None) -> bool: """ Perform an SNMP SET operation using the prepared session.