diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-11-12 13:22:08 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-11-12 13:26:15 +0100 |
commit | 5bbc2d3008910bb9c1f9eb07d7dde5bda8aa52f4 (patch) | |
tree | c855b218e5b83040baba5551011b3612cbd92394 /pycameltris/screens/InGame.py | |
parent | 7779e857e040733e04c95ab0b129693170df4db8 (diff) |
Expect pygame.surface.Surface rather than pygame.Surface for screen
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'pycameltris/screens/InGame.py')
-rw-r--r-- | pycameltris/screens/InGame.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pycameltris/screens/InGame.py b/pycameltris/screens/InGame.py index 05c4b2d..93a1d47 100644 --- a/pycameltris/screens/InGame.py +++ b/pycameltris/screens/InGame.py @@ -250,9 +250,9 @@ frames_per_gridcell = [48, 43, 38, 33, 28, 23, 18, 13, 8, 6, 5, 5, 5, 4, 4, 4, 3 class InGame(Screen): - def __init__(self, players: list[Player], screen: pygame.Surface): + def __init__(self, players: list[Player], screen: pygame.surface.Surface): self.players: list[Player] = players - self.screen: pygame.Surface = screen + self.screen: pygame.surface.Surface = screen self.event_handler: dict[int, Callable[[pygame.event.Event], None]] = {} def exit(_) -> NoReturn: |