Cover settings

This commit is contained in:
Yohann D'ANELLO
2020-11-11 22:45:15 +01:00
parent 0c17e74d6a
commit caef8dc9b2
3 changed files with 40 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import sys
from enum import Enum
from typing import Any
from typing import Any, Optional
from .enums import GameMode, KeyValues
from .settings import Settings
@ -59,8 +59,8 @@ class SettingsMenu(Menu):
s = settings.dumps_to_string()
self.values = s[6:-2].replace("\"", "").split(",\n ")
def handle_key_pressed(self, key: KeyValues, raw_key: str, game: Any) \
-> None:
def handle_key_pressed(self, key: Optional[KeyValues], raw_key: str,
game: Any) -> None:
"""
For now, in the settings mode, we can only go backwards.
"""