Hide NewType ImportErrors (#2717)

* Hide NewType ImportErrors

* No more NewType
pull/2727/head
Johann Kellerman 2016-08-03 17:21:30 +02:00 committed by Paulus Schoutsen
parent 94acda2a31
commit 09262a36c4
1 changed files with 3 additions and 3 deletions

View File

@ -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