code-structure

How to deal with Pylint's "too-many-instance-attributes" message?

How to deal with Pylint's "too-many-instance-attributes" message? Question: I have just tried to lint some code with Pylint, and the last remaining error is R0902: too-many-instance-attributes (8/7) I understand the rationale behind limiting the number of instance attributes, but seven seems a bit low. I also realise that the linter should not have the last …

Total answers: 4