Files
openide/python/testData/inspections/AddCallSuperCommentsInFunctionBodyPreserved_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

11 lines
167 B
Python

class A:
def __init__(self):
pass
class B(A):
def __init__(self):
# comment #1
A.__init__(self)
# comment #2
print 42