diff options
| author | Scott Gasch <[email protected]> | 2022-02-08 21:13:09 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-08 21:13:09 -0800 |
| commit | 2e2eab8453f1d7f85236f306283e2987562995d0 (patch) | |
| tree | bcefa40d684ff10198496608b0ab3c448e44b935 /thread_utils.py | |
| parent | 2f5b47c8b30d1b7d86443391332be2f3805cdafd (diff) | |
Fighting with type hints.
Diffstat (limited to 'thread_utils.py')
| -rw-r--r-- | thread_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_utils.py b/thread_utils.py index 4db4cf6..2375f3d 100644 --- a/thread_utils.py +++ b/thread_utils.py @@ -6,7 +6,7 @@ import functools import logging import os import threading -from typing import Callable, Optional, Tuple +from typing import Any, Callable, Optional, Tuple # This module is commonly used by others in here and should avoid # taking any unnecessary dependencies back on them. @@ -62,7 +62,7 @@ def is_current_thread_main_thread() -> bool: def background_thread( - _funct: Optional[Callable], + _funct: Optional[Callable[..., Any]], ) -> Callable[..., Tuple[threading.Thread, threading.Event]]: """A function decorator to create a background thread. |
