Various type hint improvements (#37952)

This commit is contained in:
Ville Skyttä 2020-07-22 18:06:37 +03:00 committed by GitHub
parent 3e2555e2c1
commit aa1c5fc43d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 27 deletions

View file

@ -2,7 +2,7 @@
from asyncio import Event
from collections import OrderedDict
import logging
from typing import Iterable, MutableMapping, Optional, cast
from typing import Dict, Iterable, List, MutableMapping, Optional, cast
import uuid
import attr
@ -132,7 +132,7 @@ class AreaRegistry:
self._store.async_delay_save(self._data_to_save, SAVE_DELAY)
@callback
def _data_to_save(self) -> dict:
def _data_to_save(self) -> Dict[str, List[Dict[str, Optional[str]]]]:
"""Return data of area registry to store in a file."""
data = {}