Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World.on_tick argument type is wrong? #1

Open
saippua opened this issue Aug 22, 2023 · 0 comments
Open

World.on_tick argument type is wrong? #1

saippua opened this issue Aug 22, 2023 · 0 comments

Comments

@saippua
Copy link

saippua commented Aug 22, 2023

Is there a bug with the on_tick stub in class World? The documentation states the argument should be a callback which takes a WorldSnapshot argument, but the stub defines the argument as just a WorldSnapshot object.

Shouldnt it be something like:

	def on_tick(self, callback: Callable[[WorldSnapshot], None]) -> int:
		...

^ line 5978 in __init__.pyi, Version 0.9.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant