Skip to content

CLN: unused import _libs/reduction + remove "noqa" comment in _libs/__init__.py #33142

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

Conversation

ShaharNaveh
Copy link
Member

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

@ShaharNaveh ShaharNaveh changed the title CLN: unused import libs reduction + remove "noqa" comment in _libs/__init__.py CLN: unused import _libs/reduction + remove "noqa" comment in _libs/__init__.py Mar 30, 2020
@@ -1,6 +1,15 @@
# flake8: noqa
__all__ = [
Copy link
Member

Choose a reason for hiding this comment

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

Is this required? I think unnecessary since we don't hide or disallow importing anything that appears here globally

Copy link
Member Author

Choose a reason for hiding this comment

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

The __all__ is required in order to remove the # flake8: noqa comment, otherwise flake8 complains about unused imports.

Copy link
Member Author

Choose a reason for hiding this comment

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

But not a deal breaker for me, I only made this change because opening a PR just for the LooseVersion seemed too small.

Copy link
Member

Choose a reason for hiding this comment

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

Ah forgot about the flake8 warning; I think this is OK as well

@WillAyd WillAyd added the Clean label Mar 30, 2020
@jbrockmendel jbrockmendel merged commit f85002c into pandas-dev:master Mar 30, 2020
@jbrockmendel
Copy link
Member

Thanks @MomIsBestFriend

@ShaharNaveh ShaharNaveh deleted the CLN-UnusedImports-_libs-reduction branch March 30, 2020 18:21
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.

3 participants