mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
27 lines
360 B
Python
27 lines
360 B
Python
class B(object):
|
|
def foo(self):
|
|
pass
|
|
|
|
|
|
class C(object):
|
|
"""
|
|
@DynamicAttrs
|
|
"""
|
|
def bar(self):
|
|
pass
|
|
|
|
|
|
class D(C):
|
|
def baz(self):
|
|
pass
|
|
|
|
|
|
b = B()
|
|
b.foo(), b.<warning descr="Unresolved attribute reference 'spam' for class 'B'">spam</warning>()
|
|
|
|
c = C()
|
|
c.bar(), c.spam()
|
|
|
|
d = D()
|
|
d.bar(), d.baz(), d.spam(), d.eggs()
|