Add configurable suppressions for classes based on inheritance (for use with typing.Protocol
, typing.NamedTuple
, dataclass
, etc.)
#8788
Labels
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
Why?
It would resolve high priority issue #3732, among many others. Pylint complaints on classes that are primarily used with type hinting or with data containers are not valid. It is very tedious to disable multiple checks such as too few public methods manually on all of these classes. (Not to mention preferences with docstrings for code meant just for typing and that should occupy as little screen real estate as possible).
Opening up this more generic issue because the other one is too specific, but there are more uses for inheritance-relationship or class-name based suppression.
Request
Add a way to configure disables for a category of classes based on inheritance-relationship or class-name.
Features
Ideally, the classes to customize can be specified by name, metaclass, and parent class.
See original comment by @earonesty :
Originally posted by @earonesty in #3732 (comment)
The text was updated successfully, but these errors were encountered: