Bring back typing check. Meanwhile just for homeassistant/*.py (#14410)

* Bring back typing check. Meanwhile just for homeassistant/.py

* Change follow-imports to silent. Add a few more checks.
This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2018-05-12 17:44:53 -04:00
1 parent 70af7e5fad
commit 7aec098a05
11 files changed
+41 -30

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
"""The exceptions used by Home Assistant."""
import jinja2
class HomeAssistantError(Exception):
@@ -22,7 +23,7 @@ class NoEntitySpecifiedError(HomeAssistantError):
class TemplateError(HomeAssistantError):
"""Error during template rendering."""
def __init__(self, exception):
def __init__(self, exception: jinja2.TemplateError) -> None:
"""Init the error."""
super().__init__('{}: {}'.format(exception.__class__.__name__,
exception))