More type annotations.
[python_utils.git] / thread_utils.py
index 6035b09ef2df448a7dba5ad46c90af2e594c5dbf..22161275605d76a1199df8f18d536fd04e2fe17b 100644 (file)
@@ -61,7 +61,7 @@ def is_current_thread_main_thread() -> bool:
 
 def background_thread(
     _funct: Optional[Callable],
-) -> Tuple[threading.Thread, threading.Event]:
+) -> Callable[..., Tuple[threading.Thread, threading.Event]]:
     """A function decorator to create a background thread.
 
     *** Please note: the decorated function must take an shutdown ***