Skip to content

Commit

Permalink
Fixed typings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Oct 9, 2024
1 parent d165c27 commit 9b07649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysnmp/smi/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9b07649

Please sign in to comment.