mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
10 lines
228 B
Python
10 lines
228 B
Python
class C(object):
|
|
def __new__(cls):
|
|
self = object.__new__(cls)
|
|
self.foo = 1
|
|
return self
|
|
|
|
x = C()
|
|
print(x.foo)
|
|
print(x.<warning descr="Unresolved attribute reference 'bar' for class 'C'">bar</warning>)
|