Files
openide/python/testData/inspections/AddCallSuperRepeatedOptionalTupleParamsPassedToSuperConstructor.py
Mikhail Golubev de17f7e428 PY-16420 Quick fix "Add super class call" passes some of optional parameters in generated constructor call
Previously all optional parameters of super class constructor was
ignored in generated constructor call, but from now on we pass them
there if they exist in constructors of both superclass and subclass.
2015-07-17 20:27:14 +03:00

8 lines
219 B
Python

class A:
def __init__(self, x, (y, z)=(1, (2, 3)), (a, b)=(1, 2)):
pass
class B(A):
def <warning descr="Call to __init__ of super class is missed">_<caret>_init__</warning>(self, y, z, b):
pass