From 0fd0e2c3c2f044731d875d53dc353a2e145234ba Mon Sep 17 00:00:00 2001 From: MetalStormGhost Date: Sun, 26 May 2024 17:07:17 +0300 Subject: [PATCH] Added function return type annotation to pretense_trimmed_cp_name() --- game/pretense/pretenseflightgroupspawner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/pretense/pretenseflightgroupspawner.py b/game/pretense/pretenseflightgroupspawner.py index e773144f..1a0c3572 100644 --- a/game/pretense/pretenseflightgroupspawner.py +++ b/game/pretense/pretenseflightgroupspawner.py @@ -38,7 +38,7 @@ class PretenseNameGenerator(NameGenerator): ) @classmethod - def pretense_trimmed_cp_name(cls, cp_name: str): + def pretense_trimmed_cp_name(cls, cp_name: str) -> str: cp_name_trimmed = "".join([i for i in cp_name.lower() if i.isalpha()]) cp_name_trimmed = cp_name_trimmed.replace("ä", "a") cp_name_trimmed = cp_name_trimmed.replace("ö", "o")