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:
parent
b7c336a687
commit
140a874917
27 changed files with 532 additions and 384 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue