Skip to content
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

Detect super call without brackets #4008

Closed
dpinol opened this issue Jan 2, 2021 · 0 comments · Fixed by #6374
Closed

Detect super call without brackets #4008

dpinol opened this issue Jan 2, 2021 · 0 comments · Fixed by #6374
Labels
Enhancement ✨ Improvement to a component
Milestone

Comments

@dpinol
Copy link

dpinol commented Jan 2, 2021

Is your feature request related to a problem? Please describe

Sometimes people forget brackets after using super

Describe the solution you'd like

I'd like a warning in the last line complaining of missing brackets after super

# pylint: disable=no-self-use
class Base:
    def kk(self):
        print("Base.kk()")


class Derived(Base):
    def kk(self):
        super.kk()
        print("Derived.kk()")


a = Base()
a.kk()
b = Derived()
b.kk()

thanks

@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Feb 20, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.14.0 milestone Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants