We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Demo:
from typing import Any A = ... # type: Any class C(A): def __init__(self): super(C, self).__init__(1, 2, 3) # E: Too many arguments for "__init__" of "object"
The text was updated successfully, but these errors were encountered:
Maybe this issue should also track other problems related to the base class being an object of type 'Any'? E.g. this one:
def outer(cls): class C(cls): # E: Invalid type "cls" def __iter__(self): super(C, self).__iter__() # E: "__iter__" undefined in superclass
Update: Added a second error on the class statement. Also, adding an annotation of Any to the cls argument does not silence either error.
Sorry, something went wrong.
Interestingly, this is clean:
from typing import Any A = ... # type: Any class C(A): def __iter__(self): super(C, self).__iter__()
There have been a bunch of issues with Any base classes and it's probably worth creating separate issues if things seem not directly related.
Any
Also fix #1067, by special-casing the end of the MRO for super() if a…
7be0b8c
… bad base was found.
eb786f4
No branches or pull requests
Demo:
The text was updated successfully, but these errors were encountered: