Once and for all reformat.
Will be using black code formatter
This commit is contained in:
@@ -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()]
|
||||
|
||||
Reference in New Issue
Block a user