-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
"has no attribute" then suggests another missing attribute #9084
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
Note that the attributes do exist, but I'm running with the In this case, as the variable does exist, the suggestion should probably indicate something about implicit reexport, rather than another variable. |
Yeah, this is a bug. Would you like to contribute a fix -- it should be pretty easy? You can look at the implementation of |
I can probably look at it in a few weeks. |
Also only suggest public API for attribute access suggestions Fixes python#13908 Accomplishes a similar thing to python#9084 (the logic from there could be improved too, will send a PR for that next)
Output in a mypy run:
Hopefully the error in the above output is self explanatory, it's contradicting itself.
The text was updated successfully, but these errors were encountered: