-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
MYPYPATH results in AssertionError: ImportedName(_collections.defaultdict) #5901
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
Probably the extra thing you have in |
Have read the docs? https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports Another note is we really need to implement #5241 (raised priority to high), my guess this is what causes users to abuse |
I was about to write a big long thing about how it's a library that I contribute to and I've been working very hard to make it happy with both subclassing and mypy. And then I realized that none of that work had actually been released to pypi yet, so what travis and mypy are seeing is a completely unannotated library. Would it be possible to distinguish between "This library exists, but has no annotations" and "No, sorry, it's just not here at all"? The error message implies the latter, when in this case, the former seems to have happened. |
We already have an issue for a better error message #4542 |
If I leave something extra in
$MYPYPATH
(I'm not sure I understand what exactly), I get this error:The text was updated successfully, but these errors were encountered: