mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
- support @dataclass(slots=True) - add inspection for conflict with explicit __slots__ - add quickfix for new inspection - add/adjust tests GitOrigin-RevId: 5ac6efeb6c1e209b641365e2f22bdca74ae6484a
10 lines
212 B
Python
10 lines
212 B
Python
class Foo(object):
|
|
attr = 'baz'
|
|
__slots__ = ['foo', 'bar']
|
|
|
|
Foo.attr = 'spam'
|
|
print(Foo.attr)
|
|
|
|
foo = Foo()
|
|
<warning descr="'Foo' object has no attribute 'attr'">foo.attr</warning> = 'spam'
|
|
print(foo.attr) |