Add typing to homeassistant/*.py and homeassistant/util/ (#15569)

* Add typing to homeassistant/*.py and homeassistant/util/

* Fix wrong merge

* Restore iterable in OrderedSet

* Fix tests
This commit is contained in:
Andrey 2018-07-23 11:24:39 +03:00 committed by Paulus Schoutsen
parent b7c336a687
commit 140a874917
27 changed files with 532 additions and 384 deletions

View file

@ -38,7 +38,7 @@ def load_json(filename: str, default: Union[List, Dict, None] = None) \
return {} if default is None else default
def save_json(filename: str, data: Union[List, Dict]):
def save_json(filename: str, data: Union[List, Dict]) -> None:
"""Save JSON data to a file.
Returns True on success.