summaryrefslogtreecommitdiff
path: root/thread_utils.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-02-02 09:14:12 -0800
committerScott <[email protected]>2022-02-02 09:14:12 -0800
commita4bf4d05230474ad14243d67ac7f8c938f670e58 (patch)
tree673fb8bea628ce51b942d93ba5df433732c7384e /thread_utils.py
parent971d4ba141459f78d10d5770b9459d1ead7d49a0 (diff)
More type annotations.
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 ***