mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Added function return type annotation to pretense_trimmed_cp_name()
This commit is contained in:
parent
bfe008775d
commit
0fd0e2c3c2
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user