Cover settings
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
from random import randint
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
from .entities.player import Player
|
||||
from .enums import GameMode, KeyValues
|
||||
@ -56,7 +56,8 @@ class Game:
|
||||
self.handle_key_pressed(
|
||||
*KeyValues.translate_key(key, self.settings))
|
||||
|
||||
def handle_key_pressed(self, key: KeyValues, raw_key: str = '') -> None:
|
||||
def handle_key_pressed(self, key: Optional[KeyValues], raw_key: str = '')\
|
||||
-> None:
|
||||
"""
|
||||
Indicates what should be done when the given key is pressed,
|
||||
according to the current game state.
|
||||
|
Reference in New Issue
Block a user