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

@@ -3,7 +3,7 @@ from __future__ import annotations
import itertools
import math
import random
from collections import Iterable
from collections.abc import Iterable
from dataclasses import dataclass
from typing import TypeVar, Union