Skip to content

CLN: Removed class in pandas/tests/series/test_validate.py #32184

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

Conversation

SaturnFromTitan
Copy link
Contributor

@SaturnFromTitan SaturnFromTitan commented Feb 22, 2020

I've seen quite a few test files that only use a class for historic reasons. As functions are easier to comprehend I think it makes sense to move in this direction.

  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

@@ -1,20 +1,18 @@
import pytest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just removed the class, the self argument and moved the doc-string

@SaturnFromTitan SaturnFromTitan changed the title Removed class in pandas/tests/series/test_validate.py CLN: Removed class in pandas/tests/series/test_validate.py Feb 22, 2020
@WillAyd WillAyd added the Clean label Feb 22, 2020
@WillAyd WillAyd added this to the 1.1 milestone Feb 22, 2020
@WillAyd WillAyd merged commit 016482a into pandas-dev:master Feb 22, 2020
@WillAyd
Copy link
Member

WillAyd commented Feb 22, 2020

Thanks @SaturnFromTitan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants