Once and for all reformat.

Will be using black code formatter
This commit is contained in:
2024-12-08 17:07:26 -08:00
parent 3a06464c29
commit 34badf17eb
25 changed files with 359 additions and 295 deletions

View File

@@ -7,7 +7,9 @@ class AlertCategory(Enum):
CUSTOM = 3
@staticmethod
def from_str(category: str): # It gets mad when I use the Type[AlertCategory] as a type hint
def from_str(
category: str,
): # It gets mad when I use the Type[AlertCategory] as a type hint
match category:
case "high_alert_button":
return AlertCategory.HIGH
@@ -16,4 +18,4 @@ class AlertCategory(Enum):
case "sp_add_button":
return AlertCategory.CUSTOM
case _:
return AlertCategory[category.upper()]
return AlertCategory[category.upper()]