Files
openide/python/testData/inspections/PyUnresolvedReferencesInspection/slotsWithDict.py
Semyon Proshev ae91878f13 Improve processing __slots__ in PyUnresolvedReferencesInspection (PY-29229)
Fix false positive when accessed attribute is declared in ancestor `__slots__`
2018-05-29 17:24:36 +03:00

6 lines
184 B
Python

class C(object):
__slots__ = ['__local', '__name__', '__dict__']
a = C()
print(a.<warning descr="Unresolved attribute reference 'bar' for class 'C'">bar</warning>)
a.foo = 1 #pass