Added function return type annotation to pretense_trimmed_cp_name()

This commit is contained in:
MetalStormGhost 2024-05-26 17:07:17 +03:00
parent bfe008775d
commit 0fd0e2c3c2

View File

@ -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")