From 9b07649cefac3b913c7241ac309e77cf14bed16f Mon Sep 17 00:00:00 2001 From: Lex Li Date: Wed, 9 Oct 2024 03:50:38 -0400 Subject: [PATCH] Fixed typings. --- pysnmp/smi/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysnmp/smi/builder.py b/pysnmp/smi/builder.py index 655f3166..f91c48b6 100644 --- a/pysnmp/smi/builder.py +++ b/pysnmp/smi/builder.py @@ -300,14 +300,14 @@ def setMibCompiler(self, mibCompiler, destDir): # MIB modules management - def addMibSources(self, *mibSources: __AbstractMibSource): + def addMibSources(self, *mibSources: "ZipMibSource | DirMibSource"): """Add MIB sources to the search path.""" self.__mibSources.extend([s.init() for s in mibSources]) debug.logger & debug.FLAG_BLD and debug.logger( f"addMibSources: new MIB sources {self.__mibSources}" ) - def setMibSources(self, *mibSources: __AbstractMibSource): + def setMibSources(self, *mibSources: "ZipMibSource | DirMibSource"): """Set MIB sources to the search path.""" self.__mibSources = [s.init() for s in mibSources] debug.logger & debug.FLAG_BLD and debug.logger(