diff --git a/importlib_resources/abc.py b/importlib_resources/abc.py index 199bb67c..354139ad 100644 --- a/importlib_resources/abc.py +++ b/importlib_resources/abc.py @@ -6,7 +6,7 @@ # We use mypy's comment syntax here since this file must be compatible with # both Python 2 and 3. try: - from typing import BinaryIO, Iterator, Text # noqa: F401 + from typing import BinaryIO, Iterable, Text # noqa: F401 except ImportError: # Python 2 pass @@ -53,6 +53,6 @@ def is_resource(self, path): @abstractmethod def contents(self): - # type: () -> Iterator[str] + # type: () -> Iterable[str] """Return an iterator over the string contents of the package.""" raise FileNotFoundError