mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
25 lines
294 B
Python
25 lines
294 B
Python
class M(type):
|
|
def baz(cls):
|
|
pass
|
|
|
|
|
|
class B(object):
|
|
def bar(self):
|
|
pass
|
|
|
|
|
|
class C(B, metaclass=M):
|
|
def foo(self):
|
|
pass
|
|
|
|
|
|
C.foo()
|
|
C.bar()
|
|
C.baz()
|
|
|
|
c = C()
|
|
|
|
c.foo()
|
|
c.bar()
|
|
c.<warning descr="Unresolved attribute reference 'baz' for class 'C'">baz</warning>()
|