From 414b1cb8153f50a13e07532e48d4d4635bdb59c8 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Sat, 12 Feb 2022 09:42:31 -0500 Subject: [PATCH] Agent: Add return type annotation to create_daemon_thread() --- monkey/infection_monkey/utils/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/utils/threading.py b/monkey/infection_monkey/utils/threading.py index 9ceec895f..54bc469be 100644 --- a/monkey/infection_monkey/utils/threading.py +++ b/monkey/infection_monkey/utils/threading.py @@ -16,7 +16,7 @@ def run_worker_threads(target: Callable[..., None], args: Tuple = (), num_worker t.join() -def create_daemon_thread(target: Callable[..., None], args: Tuple = ()): +def create_daemon_thread(target: Callable[..., None], args: Tuple = ()) -> Thread: return Thread(target=target, args=args, daemon=True)