Update mypy, fastapi, pydantic.

mypy update is needed for typing.Self support. It caught an existing bug
(missing @property on override), and fixed a bug so we can drop an
ignore.

Upgrading mypy requires upgrading pydantic to get the newest pydantic
mypy plugin, and since that's what's driving fastapi it's probably smart
to upgrade those together.
This commit is contained in:
Dan Albert
2023-04-26 22:51:09 -07:00
parent 7ddfc5e5ad
commit 06b74c4ca6
3 changed files with 5 additions and 5 deletions

View File

@@ -31,8 +31,7 @@ class RangeType(IntEnum):
# 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
@dataclass # type: ignore
@dataclass
class PackagePlanningTask(TheaterCommanderTask, Generic[MissionTargetT]):
target: MissionTargetT
flights: list[ProposedFlight] = field(init=False)