Files
Andrey Vlasovskikh 072b3887c1 Fixed unresolved references inspection for fields defined in __new__ (PY-6805)
The inspection may show false negative warnings for assigned attributes of objects
other than the return value of __new__.
2013-04-12 14:42:45 +04:00

6 lines
126 B
Python

class Test(object):
def __new__(cls, foo):
x = super(Test, cls).__new__(cls)
x.foo = foo
return x