More Python 3.10 compat.

This commit is contained in:
Dan Albert
2021-11-21 11:28:34 -08:00
parent 08d670a882
commit ef73f712ec
7 changed files with 15 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
import logging
from collections import Sequence
from collections.abc import Sequence
from typing import Type
from dcs.helicopters import (

View File

@@ -3,21 +3,20 @@ from __future__ import annotations
import logging
import math
import operator
import random
from collections import Iterable
from typing import TYPE_CHECKING, Type, TypeVar, Generic, Any
from collections.abc import Iterable
from typing import Any, Generic, TYPE_CHECKING, Type, TypeVar
from dcs import unitgroup
from dcs.mapping import Point
from dcs.point import PointAction
from dcs.unit import Ship, Vehicle, Unit
from dcs.unit import Ship, Unit, Vehicle
from dcs.unitgroup import ShipGroup, VehicleGroup
from dcs.unittype import VehicleType, UnitType, ShipType
from dcs.unittype import ShipType, UnitType, VehicleType
from game.dcs.groundunittype import GroundUnitType
from game.factions.faction import Faction
from game.theater import MissionTarget
from game.theater.theatergroundobject import TheaterGroundObject, NavalGroundObject
from game.theater.theatergroundobject import NavalGroundObject, TheaterGroundObject
from game.utils import Heading
if TYPE_CHECKING: