Open mthuurne opened 1 month ago
This problem is new since pylint 3.3.0, which makes sense as E0245
was added recently, in #9564.
cc/ @adamtuft, could you lend us your view of this bug report? Thanks!
Thanks for tagging me, I'll have a look at this 🔍
Bug description
I'm checking code that simplifies to this testcase:
For some reason, pylint considers
x
to be a declaration that conflicts with__slots__
, but noty
andz
.Curiously, this error flagged for
x
goes away if__slots__
is empty.Configuration
No response
Command used
Pylint output
Expected behavior
No error should be flagged.
At runtime, there is no error, as
__slots__
only applies to instances ofC
, not to the class.Pylint version
OS / Environment
Linux (openSUSE Tumbleweed)
Additional dependencies
No response