Use PEP 695 for simple type aliases (#117633)
This commit is contained in:
parent
4edee94a81
commit
87bb7ced79
78 changed files with 139 additions and 140 deletions
|
@ -141,7 +141,7 @@ _UNDEF: dict[Any, Any] = {}
|
|||
_SENTINEL = object()
|
||||
_CallableT = TypeVar("_CallableT", bound=Callable[..., Any])
|
||||
_DataT = TypeVar("_DataT", bound=Mapping[str, Any], default=Mapping[str, Any])
|
||||
CALLBACK_TYPE = Callable[[], None]
|
||||
type CALLBACK_TYPE = Callable[[], None]
|
||||
|
||||
CORE_STORAGE_KEY = "core.config"
|
||||
CORE_STORAGE_VERSION = 1
|
||||
|
@ -152,8 +152,8 @@ DOMAIN = "homeassistant"
|
|||
# How long to wait to log tasks that are blocking
|
||||
BLOCK_LOG_TIMEOUT = 60
|
||||
|
||||
ServiceResponse = JsonObjectType | None
|
||||
EntityServiceResponse = dict[str, ServiceResponse]
|
||||
type ServiceResponse = JsonObjectType | None
|
||||
type EntityServiceResponse = dict[str, ServiceResponse]
|
||||
|
||||
|
||||
class ConfigSource(enum.StrEnum):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue