From a4bf4d05230474ad14243d67ac7f8c938f670e58 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 2 Feb 2022 09:14:12 -0800 Subject: More type annotations. --- thread_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_utils.py') 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 *** -- cgit v1.3