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 186cec1 commit 57cb18fCopy full SHA for 57cb18f
tcod/event.py
@@ -1198,7 +1198,7 @@ def _parse_event(sdl_event: Any) -> Event:
1198
return Undefined.from_sdl_event(sdl_event)
1199
1200
1201
-def get() -> Iterator[Any]:
+def get() -> Iterator[Event]:
1202
"""Return an iterator for all pending events.
1203
1204
Events are processed as the iterator is consumed.
@@ -1218,7 +1218,7 @@ def get() -> Iterator[Any]:
1218
yield _parse_event(sdl_event)
1219
1220
1221
-def wait(timeout: float | None = None) -> Iterator[Any]:
+def wait(timeout: float | None = None) -> Iterator[Event]:
1222
"""Block until events exist, then return an event iterator.
1223
1224
`timeout` is the maximum number of seconds to wait as a floating point
0 commit comments