Missed call to '__init__' of the super class
Reports cases when a call to the super
constructor in a class is missed.
Example:
class Fruit:
def __init__(self):
pass
class Pear(Fruit):
def __init__(self):
pass
The Pear
class should have a super
call in the __init__
method.
When the quick-fix is applied, the code changes to:
class Fruit:
def __init__(self):
pass
class Pear(Fruit):
def __init__(self):
super().__init__()
Inspection Details | |
---|---|
Available in: | DataSpell 2023.3, PyCharm 2023.3 |
Plugin: | Python Community Edition, 233.SNAPSHOT |
Last modified: 13 July 2023