mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
The inspection may show false negative warnings for assigned attributes of objects other than the return value of __new__.
9 lines
175 B
Python
9 lines
175 B
Python
class Test(object):
|
|
def __new__(cls, foo):
|
|
x = super(Test, cls).__new__(cls)
|
|
x.foo = foo
|
|
return x
|
|
|
|
def bar(self):
|
|
return self.f<ref>oo
|