mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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."""
|
"""Combo box for selecting a departure airfield."""
|
||||||
from typing import Iterable, Type
|
from typing import Iterable
|
||||||
|
|
||||||
from PySide2.QtWidgets import QComboBox
|
from PySide2.QtWidgets import QComboBox
|
||||||
from dcs.unittype import FlyingType
|
from dcs.unittype import FlyingType
|
||||||
|
|
||||||
|
from game.dcs.aircrafttype import AircraftType
|
||||||
from game.theater.controlpoint import ControlPoint
|
from game.theater.controlpoint import ControlPoint
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ class QArrivalAirfieldSelector(QComboBox):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
destinations: Iterable[ControlPoint],
|
destinations: Iterable[ControlPoint],
|
||||||
aircraft: Type[FlyingType],
|
aircraft: AircraftType,
|
||||||
optional_text: str,
|
optional_text: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
"""Combo box for selecting a departure airfield."""
|
"""Combo box for selecting a departure airfield."""
|
||||||
from typing import Iterable, Type
|
from typing import Iterable
|
||||||
|
|
||||||
from PySide2.QtCore import Signal
|
from PySide2.QtCore import Signal
|
||||||
from PySide2.QtWidgets import QComboBox
|
from PySide2.QtWidgets import QComboBox
|
||||||
from dcs.unittype import FlyingType
|
from dcs.unittype import FlyingType
|
||||||
|
|
||||||
|
from game.dcs.aircrafttype import AircraftType
|
||||||
from game.inventory import GlobalAircraftInventory
|
from game.inventory import GlobalAircraftInventory
|
||||||
from game.theater.controlpoint import ControlPoint
|
from game.theater.controlpoint import ControlPoint
|
||||||
|
|
||||||
@ -22,7 +23,7 @@ class QOriginAirfieldSelector(QComboBox):
|
|||||||
self,
|
self,
|
||||||
global_inventory: GlobalAircraftInventory,
|
global_inventory: GlobalAircraftInventory,
|
||||||
origins: Iterable[ControlPoint],
|
origins: Iterable[ControlPoint],
|
||||||
aircraft: Type[FlyingType],
|
aircraft: AircraftType,
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.global_inventory = global_inventory
|
self.global_inventory = global_inventory
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user