Use class for attributes

This commit is contained in:
Andre Basche
2023-06-13 00:12:29 +02:00
parent 310d1bafd7
commit f6139db0b5
10 changed files with 61 additions and 19 deletions

View File

@ -73,3 +73,10 @@ def create_rules(commands, concat=False):
else:
result[f"{name}.{parameter}"] = value
return result
def str_to_float(string: str | float) -> float:
try:
return int(string)
except ValueError:
return float(str(string).replace(",", "."))