mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Use singleton enum for "not set" sentinels (#41990)
* Use singleton enum for "not set" sentinel https://www.python.org/dev/peps/pep-0484/#support-for-singleton-types-in-unions * Remove unused variable
This commit is contained in:
@@ -89,7 +89,7 @@ block_async_io.enable()
|
||||
fix_threading_exception_logging()
|
||||
|
||||
T = TypeVar("T")
|
||||
_UNDEF: dict = {}
|
||||
_UNDEF: dict = {} # Internal; not helpers.typing.UNDEFINED due to circular dependency
|
||||
# pylint: disable=invalid-name
|
||||
CALLABLE_T = TypeVar("CALLABLE_T", bound=Callable)
|
||||
CALLBACK_TYPE = Callable[[], None]
|
||||
|
||||
Reference in New Issue
Block a user