summaryrefslogtreecommitdiff
path: root/thread_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'thread_utils.py')
-rw-r--r--thread_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_utils.py b/thread_utils.py
index 6035b09..2216127 100644
--- a/thread_utils.py
+++ b/thread_utils.py
@@ -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 ***