Update typing (1) (#63922)

This commit is contained in:
Marc Mueller 2022-01-11 21:26:03 +01:00 committed by GitHub
parent 4e2cd1bec0
commit d3b7bd25ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 30 additions and 30 deletions

View file

@ -1,15 +1,15 @@
"""Typing Helpers for Home Assistant."""
from enum import Enum
from typing import Any, Dict, Mapping, Optional, Tuple, Union
from typing import Any, Mapping, Optional, Union
import homeassistant.core
GPSType = Tuple[float, float]
ConfigType = Dict[str, Any]
GPSType = tuple[float, float]
ConfigType = dict[str, Any]
ContextType = homeassistant.core.Context
DiscoveryInfoType = Dict[str, Any]
DiscoveryInfoType = dict[str, Any]
EventType = homeassistant.core.Event
ServiceDataType = Dict[str, Any]
ServiceDataType = dict[str, Any]
StateType = Union[None, str, int, float]
TemplateVarsType = Optional[Mapping[str, Any]]