forked from etingof/pysnmp
-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
# Copyright (c) 2005-2019, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
from typing import Tuple | ||
from pyasn1.compat.octets import null | ||
from pysnmp.carrier.base import AbstractTransport, AbstractTransportAddress | ||
from pysnmp import error | ||
|
@@ -16,15 +17,15 @@ class AbstractTransportTarget: | |
|
||
retries: int | ||
timeout: float | ||
transport: AbstractTransport | None | ||
transportAddr: tuple[str, int] | ||
transport: "AbstractTransport | None" | ||
transportAddr: Tuple[str, int] | ||
|
||
transportDomain = None | ||
protoTransport = AbstractTransport | ||
|
||
def __init__( | ||
self, | ||
transportAddr: tuple, | ||
transportAddr: Tuple, | ||
timeout: float = 1, | ||
retries: int = 5, | ||
tagList=null, | ||
|
@@ -79,5 +80,5 @@ def verifyDispatcherCompatibility(self, snmpEngine: SnmpEngine): | |
) | ||
) | ||
|
||
def _resolveAddr(self, transportAddr: tuple) -> tuple[str, int]: | ||
def _resolveAddr(self, transportAddr: Tuple) -> Tuple[str, int]: | ||
raise NotImplementedError() |