mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 19:27:51 +00:00
Hide NewType ImportErrors (#2717)
* Hide NewType ImportErrors * No more NewType
This commit is contained in:
parent
94acda2a31
commit
09262a36c4
@ -1,12 +1,12 @@
|
|||||||
"""Typing Helpers for Home-Assistant."""
|
"""Typing Helpers for Home-Assistant."""
|
||||||
|
from typing import Dict, Any
|
||||||
|
|
||||||
from typing import NewType, Dict, Any
|
|
||||||
import homeassistant.core
|
import homeassistant.core
|
||||||
|
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
|
|
||||||
ConfigType = NewType('ConfigType', Dict[str, Any])
|
ConfigType = Dict[str, Any]
|
||||||
HomeAssistantType = homeassistant.core.HomeAssistant
|
HomeAssistantType = homeassistant.core.HomeAssistant
|
||||||
|
|
||||||
# Custom type for recorder Queries
|
# Custom type for recorder Queries
|
||||||
QueryType = NewType('QueryType', Any)
|
QueryType = Any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user