-
Notifications
You must be signed in to change notification settings - Fork 34
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 hinting and a py.typed
marker file
#696
Comments
I have a stash on my computer where I started to work on the type definitions. I'll complete it now that someone asks for it. |
@j00bar, or anyone. do you know:
|
Good to know, some type definitions change depending of python's version, we have to support compatibility from 3.9 to 3.13: https://mypy.readthedocs.io/en/latest/cheat_sheet_py3.html#useful-built-in-types Can be resolved with: [tool.mypy]
python_version=3.9 |
@j00bar you can try it with a pre-release |
@j00bar make sure to use precisely |
9.0.0 is released. |
It would be awesome to be able to use this library in projects that are type checked by mypy without having to add it to the ignores.
To do that, for the installable code, you'd need to type hint the arguments and return for each function and then touch a
py.typed
file in the module to alert mypy it's safe to use the annotations on the code itself.The text was updated successfully, but these errors were encountered: