mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
28 lines
485 B
Python
28 lines
485 B
Python
class DataHolder:
|
|
VAR = 1
|
|
|
|
class Parent:
|
|
BOO = 12
|
|
|
|
def __init__(self):
|
|
self.c = 1
|
|
|
|
|
|
class Child(Parent): # Try to pull members up
|
|
CLASS_FIELD = 42
|
|
ANOTHER_CLASS_FIELD = CLASS_FIELD
|
|
FIELD = Parent.BOO
|
|
A_FIELD = DataHolder.VAR
|
|
|
|
@staticmethod
|
|
def foo():
|
|
return "A"
|
|
|
|
SOME_VAR = foo()
|
|
|
|
def __init__(self):
|
|
super(Child, self).__init__()
|
|
self.a = 12
|
|
self.b = self.c
|
|
self.d = Parent.BOO
|
|
i = 1 |