Fix mypy complaints

This commit is contained in:
Raffson 2023-07-23 00:04:16 +02:00
parent 53122ff149
commit 1e5cb94feb
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -525,7 +525,7 @@ class AircraftType(UnitType[Type[FlyingType]]):
setattr(pylon, w, (pylon_number, weapon))
@staticmethod
def _user_weapon_injections(aircraft):
def _user_weapon_injections(aircraft: Type[FlyingType]) -> None:
data_path = user_custom_weapon_injections_dir() / f"{aircraft.id}.yaml"
if not data_path.exists():
return