Fix mypy
This commit is contained in:
parent
64be0e9706
commit
70a09a80ba
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
from typing import NamedTuple, Iterator, List, Iterable
|
from typing import NamedTuple, Iterator, List, Iterable, Collection, Sequence
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
import csv
|
import csv
|
||||||
|
@ -52,7 +52,7 @@ def iter_locations() -> Iterator[Location]:
|
||||||
tag=tag
|
tag=tag
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_locations(cached: bool=False) -> Iterable[Location]:
|
def get_locations(cached: bool=False) -> Sequence[Location]:
|
||||||
import dill # type: ignore
|
import dill # type: ignore
|
||||||
if cached:
|
if cached:
|
||||||
with open(CACHE_PATH, 'rb') as fo:
|
with open(CACHE_PATH, 'rb') as fo:
|
||||||
|
|
Loading…
Add table
Reference in a new issue