github / codeql

CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security
https://codeql.github.com
MIT License
7.61k stars 1.52k forks source link

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

Open Gallaecio opened 4 years ago

Gallaecio commented 4 years ago

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 commented 2 years ago

Could be related to #6381