From 53a4bdc9b465413cfef359eb6ed040f894eaa38f Mon Sep 17 00:00:00 2001 From: Lex Li Date: Thu, 7 Mar 2024 03:01:08 -0500 Subject: [PATCH] Fixed annotations for old Python releases. --- pysnmp/hlapi/asyncio/cmdgen.py | 4 ++-- pysnmp/hlapi/asyncio/sync/cmdgen.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pysnmp/hlapi/asyncio/cmdgen.py b/pysnmp/hlapi/asyncio/cmdgen.py index 2f998d209..3a55a5e64 100644 --- a/pysnmp/hlapi/asyncio/cmdgen.py +++ b/pysnmp/hlapi/asyncio/cmdgen.py @@ -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. @@ -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. diff --git a/pysnmp/hlapi/asyncio/sync/cmdgen.py b/pysnmp/hlapi/asyncio/sync/cmdgen.py index e34c66525..65df91848 100644 --- a/pysnmp/hlapi/asyncio/sync/cmdgen.py +++ b/pysnmp/hlapi/asyncio/sync/cmdgen.py @@ -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, ]: @@ -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, ]: