mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 03:12:15 +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
292 B
Python
10 lines
292 B
Python
class Foo(object):
|
|
attr = 'baz'
|
|
__slots__ = [<warning descr="'attr' in __slots__ conflicts with a class variable">'attr'</warning>, 'bar']
|
|
|
|
Foo.attr = 'spam'
|
|
print(Foo.attr)
|
|
|
|
foo = Foo()
|
|
<warning descr="'Foo' object has no attribute 'attr'">foo.attr</warning> = 'spam'
|
|
print(foo.attr) |