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 type information (PEP 561) #56

Open
SimonDR-Boltzmann opened this issue Jan 7, 2022 · 2 comments · May be fixed by #63
Open

Add type information (PEP 561) #56

SimonDR-Boltzmann opened this issue Jan 7, 2022 · 2 comments · May be fixed by #63

Comments

@SimonDR-Boltzmann
Copy link

It would be nice if static type checkers like mypy could pick up the types of this package (cfr. https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages)

@briancurtin
Copy link
Owner

I don't want to add the old comment style way since this still supports 2.x, so the stub method would be what we'd do to solve this. I've only ever done in-line annotations so I don't have any direct experience with stubs, so PRs welcome if someone wants to work on it before I get to it.

@9y2070m
Copy link

9y2070m commented Apr 11, 2023

I would need the type hints too. Maybe I can provide you with a stubs file.

@9y2070m 9y2070m linked a pull request Apr 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants