Agent: Improve Callback type hint in IPScanner

This commit is contained in:
Mike Salvatore 2021-12-13 08:37:00 -05:00
parent 0c180a455c
commit 1a7135e13f
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ from .threading_utils import create_daemon_thread
logger = logging.getLogger()
Callback = Callable[[str, PingScanData, Dict[int, PortScanData]], None]
IP = str
Port = int
Callback = Callable[[IP, PingScanData, Dict[Port, PortScanData]], None]
class IPScanner: