Skip to content

LGTM.com - false positive when mixin __init__ calls super().__init__ #2455

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

Open
Gallaecio opened this issue Nov 27, 2019 · 1 comment
Open

Comments

@Gallaecio
Copy link

Gallaecio commented Nov 27, 2019

In this case:

class A:
    def __init__(self):
        pass

class B:
    def __init__(self):
        super(B, self)

class C(B, A):
    pass

LGTM reports that A.__init__() may not be called, but it will be called.

Actual source code at LGTM.com:

@raratiru
Copy link

raratiru commented May 7, 2022

Could be related to #6381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants