Fix mypy error after update

This commit is contained in:
Raffson 2022-10-09 15:22:03 +02:00
parent 6c795bee81
commit 2be3257e3c
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -32,7 +32,7 @@ class RangeType(IntEnum):
# TODO: Refactor so that we don't need to call up to the mission planner. # TODO: Refactor so that we don't need to call up to the mission planner.
# Bypass type checker due to https://github.com/python/mypy/issues/5374 # Bypass type checker due to https://github.com/python/mypy/issues/5374
@dataclass # type: ignore @dataclass
class PackagePlanningTask(TheaterCommanderTask, Generic[MissionTargetT]): class PackagePlanningTask(TheaterCommanderTask, Generic[MissionTargetT]):
target: MissionTargetT target: MissionTargetT
flights: list[ProposedFlight] = field(init=False) flights: list[ProposedFlight] = field(init=False)