Linting
This commit is contained in:
@ -93,7 +93,7 @@ class Game:
|
||||
elif key == ' ':
|
||||
return KeyValues.SPACE
|
||||
|
||||
def handle_key_pressed(self, key: KeyValues, screen) -> None:
|
||||
def handle_key_pressed(self, key: KeyValues, screen: Any) -> None:
|
||||
"""
|
||||
Indicates what should be done when the given key is pressed,
|
||||
according to the current game state.
|
||||
@ -103,7 +103,7 @@ class Game:
|
||||
elif self.state == GameMode.MAINMENU:
|
||||
self.handle_key_pressed_main_menu(key)
|
||||
elif self.state == GameMode.SETTINGS:
|
||||
self.handle_key_pressed_settings(key,screen)
|
||||
self.handle_key_pressed_settings(key, screen)
|
||||
self.display_refresh()
|
||||
|
||||
def handle_key_pressed_play(self, key: KeyValues) -> None:
|
||||
@ -142,7 +142,7 @@ class Game:
|
||||
elif option == menus.MainMenuValues.EXIT:
|
||||
sys.exit(0)
|
||||
|
||||
def handle_key_pressed_settings(self, key: KeyValues, screen : Any) -> None:
|
||||
def handle_key_pressed_settings(self, key: KeyValues, screen: Any) -> None:
|
||||
"""
|
||||
For now, in the settings mode, we can only go backwards.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user