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,10 +1,10 @@
from __future__ import annotations
import datetime
from collections import Iterable
from typing import Optional, Iterator, TYPE_CHECKING, Mapping
from collections.abc import Iterable
from typing import Iterator, Mapping, Optional, TYPE_CHECKING
from game.data.weapons import Weapon, Pylon, WeaponType
from game.data.weapons import Pylon, Weapon, WeaponType
from game.dcs.aircrafttype import AircraftType
if TYPE_CHECKING: