Django framework often requires to create class attributes to store (mutable) lists of some data. Ruff linter always warns about that these attributes aren't notated as ClassVar but because of there are no hints about ClassVar attributes in Django stub files fix of these warnings will throw type checker errors about incompatible method overrides.
It's proposed to exclude this error code from Ruff linter code-set.
Issue
Django framework often requires to create class attributes to store (mutable) lists of some data. Ruff linter always warns about that these attributes aren't notated as
ClassVar
but because of there are no hints aboutClassVar
attributes in Django stub files fix of these warnings will throw type checker errors about incompatible method overrides.It's proposed to exclude this error code from Ruff linter code-set.