Skip to content

Commit 78c041f

Browse files
committed
Fix/ignore typing issues identified by most recent version of mypy
1 parent d24e765 commit 78c041f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dcs/mission.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def flight_group_inflight(self,
11611161
p = self.aircraft(name + " Pilot #{nr}".format(nr=i), aircraft_type, country)
11621162
p.position = copy.copy(position)
11631163
p.fuel = int(p.fuel * 0.9)
1164-
ag.add_unit(p)
1164+
ag.add_unit(p) # type: ignore
11651165

11661166
country.add_aircraft_group(self._flying_group_inflight(country, ag, maintask, altitude, speed))
11671167
return ag
@@ -1207,7 +1207,7 @@ def flight_group_from_airport(self,
12071207

12081208
for i in range(1, group_size + 1):
12091209
p = self.aircraft(name + " Pilot #{nr}".format(nr=i), aircraft_type, country)
1210-
ag.add_unit(p)
1210+
ag.add_unit(p) # type: ignore
12111211

12121212
country.add_aircraft_group(
12131213
self._flying_group_from_airport(country, ag, maintask, airport, start_type, parking_slots))
@@ -1250,7 +1250,7 @@ def flight_group_from_unit(self,
12501250

12511251
for i in range(1, group_size + 1):
12521252
p = self.aircraft(name + " Pilot #{nr}".format(nr=i), aircraft_type, country)
1253-
ag.add_unit(p)
1253+
ag.add_unit(p) # type: ignore
12541254

12551255
ag.units[0].position = copy.copy(pad_group.position)
12561256
ag.formation_rectangle(pad_group.units[0].heading, 10)

dcs/unitgroup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def __init__(self, _id, name=None, start_time=0):
345345
self.uncontrolled = False
346346
self.radio_set = False
347347
self.task = "CAS"
348-
self.units = [] # type: List[FlyingUnit]
348+
self.units = [] # type: List[FlyingUnitT]
349349
self.nav_target_points = [] # type: List[NavTargetPoint]
350350

351351
def starts_from_airport(self) -> bool:

0 commit comments

Comments
 (0)