mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix mypy issues.
This commit is contained in:
parent
cdde75b517
commit
49aa79c612
@ -668,7 +668,8 @@ class AircraftConflictGenerator:
|
|||||||
units=group.units,
|
units=group.units,
|
||||||
size=len(group.units),
|
size=len(group.units),
|
||||||
friendly=flight.from_cp.captured,
|
friendly=flight.from_cp.captured,
|
||||||
departure_delay=flight.scheduled_in,
|
# Set later.
|
||||||
|
departure_delay=timedelta(),
|
||||||
departure=departure_runway,
|
departure=departure_runway,
|
||||||
arrival=departure_runway,
|
arrival=departure_runway,
|
||||||
# TODO: Support for divert airfields.
|
# TODO: Support for divert airfields.
|
||||||
|
|||||||
@ -139,11 +139,6 @@ class Flight:
|
|||||||
self.targets: List[MissionTarget] = []
|
self.targets: List[MissionTarget] = []
|
||||||
self.loadout: Dict[str, str] = {}
|
self.loadout: Dict[str, str] = {}
|
||||||
self.start_type = start_type
|
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.use_custom_loadout = False
|
||||||
self.client_count = 0
|
self.client_count = 0
|
||||||
|
|
||||||
|
|||||||
@ -108,7 +108,6 @@ class QFlightCreator(QDialog):
|
|||||||
else:
|
else:
|
||||||
start_type = "Warm"
|
start_type = "Warm"
|
||||||
flight = Flight(self.package, aircraft, size, origin, task, start_type)
|
flight = Flight(self.package, aircraft, size, origin, task, start_type)
|
||||||
flight.scheduled_in = self.package.delay
|
|
||||||
flight.client_count = self.client_slots_spinner.value()
|
flight.client_count = self.client_slots_spinner.value()
|
||||||
|
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user