Skip to content

STYLE enable pylint: non-parent-init-called #49819

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 2 commits into from
Nov 22, 2022

Conversation

natmokval
Copy link
Contributor

Issue #48855. This PR enables pylint type "W" warning: non-parent-init-called

Comment on lines 62 to +63
# Do not call LinePlot.__init__ which may fill nan
MPLPlot.__init__(self, data, **kwargs)
MPLPlot.__init__(self, data, **kwargs) # pylint: disable=non-parent-init-called
Copy link
Member

Choose a reason for hiding this comment

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

this comment is useful - for the other two cases, can we move the comment to be directly above the MPLPlot.__init__ line (or add it there if it's not already present, as in the Kdeplot case?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, @MarcoGorelli . I added comments as you suggested.

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Nov 21, 2022
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 @natmokval !

@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Nov 22, 2022
@MarcoGorelli MarcoGorelli merged commit 9f687cb into pandas-dev:main Nov 22, 2022
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
* STYLE enable pylint: non-parent-init-called

* fixup! STYLE enable pylint: non-parent-init-called
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