X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=thread_utils.py;h=22161275605d76a1199df8f18d536fd04e2fe17b;hb=a4bf4d05230474ad14243d67ac7f8c938f670e58;hp=6035b09ef2df448a7dba5ad46c90af2e594c5dbf;hpb=6cf1d61b80d02937dbca9025c1922568d42a8c73;p=python_utils.git 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 ***