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
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue