Hide NewType ImportErrors (#2717)
* Hide NewType ImportErrors * No more NewType
This commit is contained in:
parent
94acda2a31
commit
09262a36c4
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
|||
"""Typing Helpers for Home-Assistant."""
|
||||
from typing import Dict, Any
|
||||
|
||||
from typing import NewType, Dict, Any
|
||||
import homeassistant.core
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
|
||||
ConfigType = NewType('ConfigType', Dict[str, Any])
|
||||
ConfigType = Dict[str, Any]
|
||||
HomeAssistantType = homeassistant.core.HomeAssistant
|
||||
|
||||
# Custom type for recorder Queries
|
||||
QueryType = NewType('QueryType', Any)
|
||||
QueryType = Any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue