mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 10:14:57 +07:00
13 lines
227 B
Python
13 lines
227 B
Python
|
|
class Test(object):
|
|
def __new__(cls, foo): # False positive
|
|
self = super(Test, cls).__new__(cls)
|
|
self.foo = foo
|
|
return self
|
|
|
|
def bar(self):
|
|
return self.foo
|
|
|
|
|
|
t = Test(42)
|
|
print(t.bar()) |