From 7454ee72b229ea97b79a82ca8b4c75d4f1c5cc06 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 8 Jul 2021 12:04:12 -0400 Subject: [PATCH] Agent: Switch copy_file typehint from str to Path --- monkey/infection_monkey/ransomware/ransomware_payload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/ransomware/ransomware_payload.py b/monkey/infection_monkey/ransomware/ransomware_payload.py index a6637b673..5b4a0cb8a 100644 --- a/monkey/infection_monkey/ransomware/ransomware_payload.py +++ b/monkey/infection_monkey/ransomware/ransomware_payload.py @@ -25,7 +25,7 @@ class RansomwarePayload: self, config: dict, telemetry_messenger: ITelemetryMessenger, - copy_file: Callable[[str, str], None], + copy_file: Callable[[Path, Path], None], ): LOG.debug(f"Ransomware payload configuration:\n{pformat(config)}")