Skip to content

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

Open
@Gallaecio

Description

@Gallaecio

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions