-
-
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
Args to __new__ not recognized #982
Comments
#794 is a third issue -- classes should be able to override Attribute assignment can be worked around by defining attributes in the class body. Inferring attributes in |
Marking as priority as this is a fundamental language feature that mypy doesn't support yet. |
#794 actually covers an additional issue -- using |
Inferring signature from
|
Closing this as the immediate issue is resolved, but see also the follow-up issues linked to above and #794 -- they are needed for more complete |
I have this code:
This elicits an error complaining about the
foo
keyword to C, another about thefoo
attribute, and then one about the positional argument:This may be related to #794 -- feel free to close as a dupe if fixing that would automatically fix this. (There seem to be two separate issues here -- it doesn't turn the
__new__
signature into the class signature, and it doesn't believe attributes set by__new__
become attributes of the object.)The text was updated successfully, but these errors were encountered: