Skip to content

STYLE: Enable Pylint useless-parent-delegation warning #49773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 23, 2022

Conversation

uzzell
Copy link
Contributor

@uzzell uzzell commented Nov 18, 2022

Associated with #48855. Enables the Pylint type "W" warning useless-parent-delegation.

I have questions about the changes that I made to test_decimal.py and test_numpy.py. I'll elaborate in comments below.

Remove @skip_nested annotations that cause test failures and replace them with statements that suppress the useless-parent-delegation warning.
@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Nov 18, 2022
@MarcoGorelli
Copy link
Member

you'll need to run the pre-commit checks too, see the contributing guide for how to do this

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @uzzell !

@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Nov 23, 2022
@MarcoGorelli MarcoGorelli merged commit 005486f into pandas-dev:main Nov 23, 2022
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
)

* Enable Pylint useless-parent-delegation warning and remove superfluous overriding methods

* Remove annotations that caused errors.

Remove @skip_nested annotations that cause test failures and replace them with statements that suppress the useless-parent-delegation warning.

* Remove tests that can fall back to the base class

* Move a comment to ensure that pre-commit passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants