Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxin688 committed Jul 26, 2024
1 parent a88a20f commit 6e64a41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ezsnmp/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6e64a41

Please sign in to comment.