From 70a09a80ba1dd948b81e28f88848baca14b12036 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Wed, 10 Oct 2018 19:35:55 +0100 Subject: [PATCH] Fix mypy --- location/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/location/__init__.py b/location/__init__.py index 11bc401..4ba6cf8 100644 --- a/location/__init__.py +++ b/location/__init__.py @@ -1,4 +1,4 @@ -from typing import NamedTuple, Iterator, List, Iterable +from typing import NamedTuple, Iterator, List, Iterable, Collection, Sequence from datetime import datetime import logging import csv @@ -52,7 +52,7 @@ def iter_locations() -> Iterator[Location]: tag=tag ) -def get_locations(cached: bool=False) -> Iterable[Location]: +def get_locations(cached: bool=False) -> Sequence[Location]: import dill # type: ignore if cached: with open(CACHE_PATH, 'rb') as fo: