forked from p15670423/monkey
Agent: Fix some type hints in automated master
This commit is contained in:
parent
6147d635d6
commit
88608c1cf1
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue