-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Added py.typed to the package #4154
base: main
Are you sure you want to change the base?
Conversation
@vfdev-5 In general, that was the plan. But looking at Lines 7 to 33 in ef71159
we have quite a few holes in our own type checking. IMO we should get annotations working in |
I wonder if this Is mypy complaining the same for modules that are typed, e.g. the io module? |
@NicolasHug there are still discussions on this pep 561 compatibility in pandas:
According to the docs: https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages there are two ways of doing things:
See numpy as example : |
To add a little context: you only need the https://github.com/pytorch/pytorch/blob/master/torch/py.typed |
Description:
Adding this will enable to remove mypy errors on user code with torchvision:
and
mypy check_vision.py