Skip to content

Commit

Permalink
Fixed annotations for old Python releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Mar 7, 2024
1 parent 426919f commit 53a4bdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pysnmp/hlapi/asyncio/cmdgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ async def walkCmd(
*varBinds,
**options
) -> AsyncGenerator[
tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]],
"tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]]",
None,
]:
r"""Creates a generator to perform one or more SNMP GETNEXT queries.
Expand Down Expand Up @@ -806,7 +806,7 @@ async def bulkWalkCmd(
*varBinds,
**options
) -> AsyncGenerator[
tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]],
"tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]]",
None,
]:
r"""Creates a generator to perform one or more SNMP GETBULK queries.
Expand Down
4 changes: 2 additions & 2 deletions pysnmp/hlapi/asyncio/sync/cmdgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def walkCmd(
*varBinds,
**options
) -> Generator[
tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]],
"tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]]",
None,
None,
]:
Expand Down Expand Up @@ -540,7 +540,7 @@ def bulkWalkCmd(
*varBinds,
**options
) -> Generator[
tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]],
"tuple[errind.ErrorIndication, Integer32 | int, Integer32 | int, tuple[ObjectType]]",
None,
None,
]:
Expand Down

0 comments on commit 53a4bdc

Please sign in to comment.