From 9e2c5c06b9154acc544f5919b53d9845dae8b0e0 Mon Sep 17 00:00:00 2001 From: tmz Date: Fri, 9 Aug 2024 14:07:04 +0200 Subject: [PATCH] Deleted __str__ from StartType to limit impact of change. --- game/ato/flight.py | 4 +--- game/ato/starttype.py | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/game/ato/flight.py b/game/ato/flight.py index 26b4b00f..1cfe8040 100644 --- a/game/ato/flight.py +++ b/game/ato/flight.py @@ -285,9 +285,7 @@ class Flight( return self.__str__() def __str__(self) -> str: - string = ( - f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type}" - ) + string = f"[{self.flight_type}] {self.count} x {self.unit_type} - {self.start_type.value}" if self.custom_name: return f"{self.custom_name} - {string}" return string diff --git a/game/ato/starttype.py b/game/ato/starttype.py index e3b3b89c..e42e6402 100644 --- a/game/ato/starttype.py +++ b/game/ato/starttype.py @@ -13,6 +13,3 @@ class StartType(Enum): WARM = "Warm" RUNWAY = "Runway" IN_FLIGHT = "In Flight" - - def __str__(self) -> str: - return f"{self.value}"