Skip to content

Commit

Permalink
Backing out pull-request #2788 due to breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jun 20, 2022
1 parent 8eb6096 commit 877c2fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netmiko/snmp_autodetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
Note, pysnmp is a required dependency for SNMPDetect and is intentionally not included in
netmiko requirements. So installation of pysnmp might be required.
"""
from typing import Optional, Dict, Pattern
from typing import Optional, Dict
from typing.re import Pattern
import re

try:
Expand Down Expand Up @@ -333,7 +334,7 @@ def autodetect(self) -> Optional[str]:
for entry in snmp_mapper_list:
for device_type, v in entry.items():
oid: str = v["oid"] # type: ignore
regex: Pattern[str] = v["expr"] # type: ignore
regex: Pattern = v["expr"]

# Used cache data if we already queryied this OID
if self._response_cache.get(oid):
Expand Down

0 comments on commit 877c2fa

Please sign in to comment.