-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Doesn't recognize all uses of super #857
Comments
Sorry, closed the wrong issue. |
Moved to 0.4.0 as this doesn't seem very frequent in real-world code. |
I came across this bug today. I agree that this doesn't seem frequent in real-world code. An example of this usage of super here: https://github.com/dabeaz/python-cookbook/blob/8a71861a81350e55bd77556996ac3b530a1ffe5e/src/9/enforcing_coding_conventions_in_classes/example2.py#L9 |
This an updated example that reproduces the issue: class A:
def f(self) -> None: pass
class B(A):
def __init__(self) -> None:
s = super(B, self)
s.f() # "super" has no attribute "f" |
Yields:
test.py:6: error: Name 'super' is not defined
The text was updated successfully, but these errors were encountered: