-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
mypy does not recognize __qualname__ #6473
Comments
Such kind of issues are typically easy to fix. You can look at how |
Thanks @ilevkivskyi . I'm curious, why was this Issue labeled "false-positive"? |
The label "false-positive" refers to the fact that mypy gives an error where it shouldn't. It doesn't mean there's anything wrong with your bug report! |
If no one is working on this issue, I'd like to give it a shot if possible. :) |
Go ahead! But please be aware that we are currently working on big refactoring on semantic analyzer, so you will need to copy your fix to the |
So I believe I fixed the issue within the normal mypy directory, but I'm not sure where in newsemanal it would be necessary to make a change? The only place I can think to make additions or changes would be in newsemanal/semanal_pass1.py, otherwise it doesn't look like there would be a change needed other than the one in mypy/mypy/nodes.py where |
I don't think using/changing |
Any tips on implementing that? implicit_module_attrs uses a set with 'module name attributes' keys and 'type' values so for an implicit_class_attrs would there be even be a 'type'? I'm just wondering if a set would even be the correct solution. Also, what other classes, if any, would you recommend I add? |
#10570 is a duplicate with slightly more details |
test1.py
run mypy checking
BUG: mypy reports
not defined
The Python interpreter runs the code without error.
__qualname__
has been available since Python 3.3.Tested on Python 3.7.1, using mpypy 0.670.
The text was updated successfully, but these errors were encountered: