We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2934bc4 commit 84fce75Copy full SHA for 84fce75
tutorials/python/2021/part-2.md
@@ -293,10 +293,10 @@ class EventHandler(tcod.event.EventDispatch[ActionOrHandler]):
293
action.perform()
294
return self
295
296
- def ev_quit(self, event: tcod.event.Quit) -> Optional[game.actions.Action]:
+ def ev_quit(self, event: tcod.event.Quit) -> Optional[ActionOrHandler]:
297
raise SystemExit(0)
298
299
- def ev_keydown(self, event: tcod.event.KeyDown) -> Optional[game.actions.Action]:
+ def ev_keydown(self, event: tcod.event.KeyDown) -> Optional[ActionOrHandler]:
300
key = event.sym
301
302
if key in MOVE_KEYS:
0 commit comments