Pre-emptive Python 3.10 compat.

Iterator is no longer exposed directly in collections, but is in
collections.abc.
This commit is contained in:
Dan Albert
2021-11-20 18:49:14 -08:00
parent 66c8b96c9a
commit 12f420f50e
30 changed files with 54 additions and 54 deletions

View File

@@ -1,5 +1,5 @@
from collections import Iterator, Iterable
from typing import Generic, TypeVar, Optional
from collections.abc import Iterable, Iterator
from typing import Generic, Optional, TypeVar
ValueT = TypeVar("ValueT")