You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Sometimes I need to inherit from classes defined in third-party libs. Sometimes these classes have long inheritance chain. I can't do anything about this, but still get too-many-ancestors.
Describe the solution you'd like
I want there was an option to count ancestors only in "local" code, so pylint will complain only about the part of problem I can fix.
* Add ignored-parents option to design checker
This allows users to specify classes to ignore while counting parent
classes.
Partially closes#3057
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Is your feature request related to a problem? Please describe
Sometimes I need to inherit from classes defined in third-party libs. Sometimes these classes have long inheritance chain. I can't do anything about this, but still get too-many-ancestors.
Describe the solution you'd like
I want there was an option to count ancestors only in "local" code, so pylint will complain only about the part of problem I can fix.
Additional context
Here's example where it would be useful: https://stackoverflow.com/questions/22834392/understanding-too-many-ancestors-from-pylint/43090406
The text was updated successfully, but these errors were encountered: