Deleted __str__ from StartType to limit impact of change.

This commit is contained in:
tmz 2024-08-09 14:07:04 +02:00 committed by Raffson
parent 5b4ed979b1
commit 9e2c5c06b9
2 changed files with 1 additions and 6 deletions

View File

@ -285,9 +285,7 @@ class Flight(
return self.__str__() return self.__str__()
def __str__(self) -> str: def __str__(self) -> str:
string = ( string = f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type.value}"
f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type}"
)
if self.custom_name: if self.custom_name:
return f"{self.custom_name} - {string}" return f"{self.custom_name} - {string}"
return string return string

View File

@ -13,6 +13,3 @@ class StartType(Enum):
WARM = "Warm" WARM = "Warm"
RUNWAY = "Runway" RUNWAY = "Runway"
IN_FLIGHT = "In Flight" IN_FLIGHT = "In Flight"
def __str__(self) -> str:
return f"{self.value}"