Skip to content

False positive: calling super on bases base class is shown as error #2903

Closed
@Bergiu

Description

@Bergiu

Steps to reproduce

  1. Make an empty folder and create the file test.py with this content:
    image
  2. pylint test.py

Current behavior

Executing the code works, but a false positive error is shown.

E1003: Bad first argument 'B' given to super() (bad-super-call)

Expected behavior

Pylint shouldn't show this error.

pylint --version output

astroid 2.2.5
Python 3.7.3 (default, Mar 26 2019, 21:43:19) 
[GCC 8.2.1 20181127]

Metadata

Metadata

Assignees

Labels

False Positive 🦟A message is emitted but nothing is wrong with the code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions