False positive declare-non-slot
on classvar
#9950
Labels
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
declare-non-slot
on classvar
#9950
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
The text was updated successfully, but these errors were encountered: