mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 21:00:59 +07:00
fixed PY-9263 Move attribute to init method: add super class call when moving to not yet existing init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
class Base:
|
||||
def __init__(self):
|
||||
self.param = 2
|
||||
|
||||
class Child(Base):
|
||||
def f(self):
|
||||
self.<caret>my = 2
|
||||
@@ -0,0 +1,13 @@
|
||||
__author__ = 'ktisha'
|
||||
|
||||
class Base:
|
||||
def __init__(self):
|
||||
self.param = 2
|
||||
|
||||
class Child(Base):
|
||||
def __init__(self):
|
||||
Base.__init__(self)
|
||||
self.my = 2
|
||||
|
||||
def f(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user