From 8e670e1a3c34427cc63fd9b8a3a2d70fca2c3b7e Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 1 Oct 2023 19:32:20 +0200 Subject: [PATCH] Formatting --- game/factions/faction.py | 2 +- game/squadrons/squadron.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/game/factions/faction.py b/game/factions/faction.py index af808962..c4dc5ce3 100644 --- a/game/factions/faction.py +++ b/game/factions/faction.py @@ -200,7 +200,7 @@ class Faction: faction = Faction( locales=json.get("locales"), country=country, - cargo_ship=ShipUnitType.named(json.get("cargo_ship", "Handy Wind")) + cargo_ship=ShipUnitType.named(json.get("cargo_ship", "Handy Wind")), ) faction.name = json.get("name", "") diff --git a/game/squadrons/squadron.py b/game/squadrons/squadron.py index 437e441b..c53e5bfa 100644 --- a/game/squadrons/squadron.py +++ b/game/squadrons/squadron.py @@ -415,9 +415,7 @@ class Squadron: return parking_type = ParkingType().from_squadron(self) - if self.expected_size_next_turn > self.location.unclaimed_parking( - parking_type - ): + if self.expected_size_next_turn > self.location.unclaimed_parking(parking_type): raise RuntimeError(f"Not enough parking for {self} at {self.location}.") self.destination = None self.cancel_ferry_flights()