-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
mypy test errors when using python runtests.py
#17316
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
Comments
I am also seeing failures at commit 7b7e7fe in For reference, a passing travis log shows these packages:
|
@BvB93 ping |
Locally I'm not seeing any typing-related errors when running either |
|
Thanks for checking. It might be something from the package list in the details above. Locally I see these differences (all the others are the same, especially
|
For reference (macOS, python 3.8.3):
Could any of you show me an example of these failed test runs? |
It seems to be some failure in mypy serializing? here is the output of the tests. The first assertion error is on line 1635 of that output. |
Yes, there is definitely something wrong with mypy itself here. The lack of actual error messages isn't helping either...
|
After clearing out my mypy cache I've finally managed to reproduce the issue, though only when running This is definitely something to keep an eye out for in the future, especially once annotations are added for public sub-modules. |
Prevents mypy crashes related to import cycles. See numpy#17316
I see 14 typing errors that seem related to the added stubs when simply using runtests.py in the usual way. I assume that I am missing something but have no idea what it is.
Reproducing code example:
Error message:
Numpy/Python version information:
The text was updated successfully, but these errors were encountered: