From 22b12080b6a1c1904e0cb49a83965530b913d999 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 21 Sep 2022 18:21:42 +0000 Subject: [PATCH] Island: Fix mypy issues in ransomware_report.py --- .../monkey_island/cc/services/ransomware/ransomware_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/services/ransomware/ransomware_report.py b/monkey/monkey_island/cc/services/ransomware/ransomware_report.py index 5dd384511..0e71a978b 100644 --- a/monkey/monkey_island/cc/services/ransomware/ransomware_report.py +++ b/monkey/monkey_island/cc/services/ransomware/ransomware_report.py @@ -18,8 +18,8 @@ def get_propagation_stats() -> Dict: } -def _get_exploit_counts(exploited: List[MonkeyExploitation]) -> Dict: - exploit_counts = {} +def _get_exploit_counts(exploited: List[MonkeyExploitation]) -> Dict[str, int]: + exploit_counts: Dict[str, int] = {} for node in exploited: for exploit in node.exploits: