Agent: Fix some type hints in automated master

This commit is contained in:
Mike Salvatore 2021-12-13 07:05:10 -05:00
parent 6147d635d6
commit 88608c1cf1
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class Propagator:
logger.info("Finished network scan")
def _process_scan_results(
self, ip: str, ping_scan_data: PingScanData, port_scan_data: PortScanData
self, ip: str, ping_scan_data: PingScanData, port_scan_data: Dict[int, PortScanData]
):
victim_host = VictimHost(ip)
has_open_port = False

View File

@ -1,6 +1,6 @@
from threading import Thread
from typing import Any, Callable, Tuple
from typing import Callable, Tuple
def create_daemon_thread(target: Callable[[Any], None], args: Tuple[Any] = ()):
def create_daemon_thread(target: Callable[..., None], args: Tuple = ()):
return Thread(target=target, args=args, daemon=True)