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

Add static typing #514

Open
Timmmm opened this issue Oct 27, 2023 · 1 comment
Open

Add static typing #514

Timmmm opened this issue Oct 27, 2023 · 1 comment

Comments

@Timmmm
Copy link

Timmmm commented Oct 27, 2023

As far as I can tell this is missing static types or type stubs.

The best way to do it is to add type hints into the code, then you have to add an empty py.typed file in your package (next to __init__.py).

I would recommend using Pyright over Mypy. It's much better. The easiest way to run/enforce it is using the Pyright pre-commit hook.

@JonathonReinhart
Copy link

I think this is a duplicate of #371.

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

2 participants