Fix mypy issues.

This commit is contained in:
Dan Albert 2020-11-01 14:49:50 -08:00
parent cdde75b517
commit 49aa79c612
3 changed files with 2 additions and 7 deletions

View File

@ -668,7 +668,8 @@ class AircraftConflictGenerator:
units=group.units,
size=len(group.units),
friendly=flight.from_cp.captured,
departure_delay=flight.scheduled_in,
# Set later.
departure_delay=timedelta(),
departure=departure_runway,
arrival=departure_runway,
# TODO: Support for divert airfields.

View File

@ -139,11 +139,6 @@ class Flight:
self.targets: List[MissionTarget] = []
self.loadout: Dict[str, str] = {}
self.start_type = start_type
# Late activation delay in seconds from mission start. This is not
# the same as the flight's takeoff time. Takeoff time depends on the
# mission's TOT and the other flights in the package. Takeoff time is
# determined by AirConflictGenerator.
self.scheduled_in = 0
self.use_custom_loadout = False
self.client_count = 0

View File

@ -108,7 +108,6 @@ class QFlightCreator(QDialog):
else:
start_type = "Warm"
flight = Flight(self.package, aircraft, size, origin, task, start_type)
flight.scheduled_in = self.package.delay
flight.client_count = self.client_slots_spinner.value()
# noinspection PyUnresolvedReferences