mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix type annotations for some UI code.
This commit is contained in:
parent
703c68eb66
commit
9940dc8451
@ -1,9 +1,10 @@
|
||||
"""Combo box for selecting a departure airfield."""
|
||||
from typing import Iterable, Type
|
||||
from typing import Iterable
|
||||
|
||||
from PySide2.QtWidgets import QComboBox
|
||||
from dcs.unittype import FlyingType
|
||||
|
||||
from game.dcs.aircrafttype import AircraftType
|
||||
from game.theater.controlpoint import ControlPoint
|
||||
|
||||
|
||||
@ -17,7 +18,7 @@ class QArrivalAirfieldSelector(QComboBox):
|
||||
def __init__(
|
||||
self,
|
||||
destinations: Iterable[ControlPoint],
|
||||
aircraft: Type[FlyingType],
|
||||
aircraft: AircraftType,
|
||||
optional_text: str,
|
||||
) -> None:
|
||||
super().__init__()
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
"""Combo box for selecting a departure airfield."""
|
||||
from typing import Iterable, Type
|
||||
from typing import Iterable
|
||||
|
||||
from PySide2.QtCore import Signal
|
||||
from PySide2.QtWidgets import QComboBox
|
||||
from dcs.unittype import FlyingType
|
||||
|
||||
from game.dcs.aircrafttype import AircraftType
|
||||
from game.inventory import GlobalAircraftInventory
|
||||
from game.theater.controlpoint import ControlPoint
|
||||
|
||||
@ -22,7 +23,7 @@ class QOriginAirfieldSelector(QComboBox):
|
||||
self,
|
||||
global_inventory: GlobalAircraftInventory,
|
||||
origins: Iterable[ControlPoint],
|
||||
aircraft: Type[FlyingType],
|
||||
aircraft: AircraftType,
|
||||
) -> None:
|
||||
super().__init__()
|
||||
self.global_inventory = global_inventory
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user