Use PEP 695 for simple type aliases (#117633)

This commit is contained in:
Marc Mueller 2024-05-17 14:42:21 +02:00 committed by GitHub
parent 4edee94a81
commit 87bb7ced79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 139 additions and 140 deletions

View file

@ -14,16 +14,16 @@ from .deprecation import (
dir_with_deprecated_constants,
)
GPSType = tuple[float, float]
ConfigType = dict[str, Any]
DiscoveryInfoType = dict[str, Any]
ServiceDataType = dict[str, Any]
StateType = str | int | float | None
TemplateVarsType = Mapping[str, Any] | None
NoEventData = Mapping[str, Never]
type GPSType = tuple[float, float]
type ConfigType = dict[str, Any]
type DiscoveryInfoType = dict[str, Any]
type ServiceDataType = dict[str, Any]
type StateType = str | int | float | None
type TemplateVarsType = Mapping[str, Any] | None
type NoEventData = Mapping[str, Never]
# Custom type for recorder Queries
QueryType = Any
type QueryType = Any
class UndefinedType(Enum):