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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
(馃悶) include a py.typed
in the distribution (pep 561)
#4822
Comments
Is it ok to add this file even though the whole project isn't typed? Can it be added only to a certain sub package? In that case we could add it when such a package is properly typed. For example, we have #4841 about typing the whole Notice that typing the whole Robot code page in the near future isn't a realistic goal, but typing all public APIs is something we can try. |
With this file, mypy will see the modules/classes/functions. without, it will only complain.
I'm pretty sure you can. |
My understanding of If you can point me to some authoritative documentation stating that adding I understand that some users would benefit from more detailed typing. I think the best solution would be such users creating stub files that can be distributed separately. |
I am attempting to use some of the new code that includes type annotations, but unfortunately there is no
py.typed
file, so any type checker will ignore the annotations.https://peps.python.org/pep-0561/
The text was updated successfully, but these errors were encountered: