From b9cf2008326ea26a0559a8898840af7f205e1d8e Mon Sep 17 00:00:00 2001 From: vakarisz Date: Tue, 27 Sep 2022 11:50:20 +0300 Subject: [PATCH] Agent: Change return typehint to be more specific --- .../infection_monkey/network_scanning/scan_target_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/network_scanning/scan_target_generator.py b/monkey/infection_monkey/network_scanning/scan_target_generator.py index e1cd93c03..5e0e06ae5 100644 --- a/monkey/infection_monkey/network_scanning/scan_target_generator.py +++ b/monkey/infection_monkey/network_scanning/scan_target_generator.py @@ -76,7 +76,7 @@ def _get_ips_from_ranges_to_scan(network_ranges: Iterable[NetworkRange]) -> List def _get_ips_to_scan_from_interface( interfaces: Sequence[IPv4Interface], -) -> Sequence[NetworkAddress]: +) -> List[NetworkAddress]: ranges = [str(interface) for interface in interfaces] ranges = NetworkRange.filter_invalid_ranges(