Files
openide/python/testData/inspections/AddCallSuper1_after.py
Mikhail Golubev 8c7189be4d PY-16289, PY-16348 Instead of generating whole constructor anew, replace parameter list and insert super call
It also preserves original indentation of updated constructor and
handles comments at the end of the function body better.
2015-07-01 14:31:30 +03:00

10 lines
183 B
Python

class A:
def __init__(self, c, a = 5):
pass
class B(A):
def __init__(self, r, c, b=6):
"""docstring"""
A.__init__(self, c)
print "Constructor B was called"