mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fixed mypy errors
This commit is contained in:
parent
63f687a20e
commit
399c739fd7
@ -703,7 +703,7 @@ class AircraftConflictGenerator:
|
|||||||
self, cp: ControlPoint, country: Country, flight: Flight
|
self, cp: ControlPoint, country: Country, flight: Flight
|
||||||
) -> FlyingGroup[Any]:
|
) -> FlyingGroup[Any]:
|
||||||
name = namegen.next_aircraft_name(country, cp.id, flight)
|
name = namegen.next_aircraft_name(country, cp.id, flight)
|
||||||
group: Optional[FlyingGroup[Any]] = None
|
group: FlyingGroup[Any]
|
||||||
try:
|
try:
|
||||||
if flight.start_type == "In Flight":
|
if flight.start_type == "In Flight":
|
||||||
group = self._generate_inflight(
|
group = self._generate_inflight(
|
||||||
@ -730,7 +730,7 @@ class AircraftConflictGenerator:
|
|||||||
# If the flight is an helicopter flight, then prioritize dedicated helipads
|
# If the flight is an helicopter flight, then prioritize dedicated helipads
|
||||||
if flight.unit_type.helicopter:
|
if flight.unit_type.helicopter:
|
||||||
helipad = cp.get_free_helipad()
|
helipad = cp.get_free_helipad()
|
||||||
if helipad is not None:
|
if helipad is not None and helipad.static_unit is not None:
|
||||||
group = self._generate_at_group(
|
group = self._generate_at_group(
|
||||||
name=name,
|
name=name,
|
||||||
side=country,
|
side=country,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user