Fix linting
This commit is contained in:
@ -53,7 +53,8 @@ class KeyValues(Enum):
|
||||
DANCE = auto()
|
||||
|
||||
@staticmethod
|
||||
def translate_key(key: str, settings: Settings) -> Optional["KeyValues"]:
|
||||
def translate_key(key: str, settings: Settings) \
|
||||
-> Optional["KeyValues"]: # noqa: C901
|
||||
"""
|
||||
Translates the raw string key into an enum value that we can use.
|
||||
"""
|
||||
@ -91,4 +92,3 @@ class KeyValues(Enum):
|
||||
return KeyValues.LAUNCH
|
||||
elif key == settings.KEY_DANCE:
|
||||
return KeyValues.DANCE
|
||||
return None
|
||||
|
Reference in New Issue
Block a user