-
Notifications
You must be signed in to change notification settings - Fork 16
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
py.typed not included in PyPI distribution #470
Comments
@MaxwellPayne are you aware of any validation I could employ to check whether the py.typed is the package or not? Just In case I break something in the future again... |
Anyway, try 3.0.2 |
@fizyk Thanks for the quick turnaround! I updated my package version to the new one from PyPI, and I see the expected
I suppose you could write some sort of CI validation script that executes a build, tar-extracts the |
What action do you want to perform
I'm attempting to import submodules of
pytest_redis
within my project, using version 3.0.1. Something like:What are the results
When I run a
mypy
check on this file, I get the following errors:What are the expected results
This seemed strange to me, since I noticed that this project has a py.typed file which should inform Mypy that this repo has type annotations in place. But when I looked in my local
site-packages/pytest_redis
directory, I see the following:The lack of a local
py.typed
file misleads Mypy into believing that this package does not have type annotations, which is why it gives me those errors. When I manually touch a file with that name, Mypy then passes without error.The text was updated successfully, but these errors were encountered: