Skip to content

CLN: Remove unused imports in pyx files #21802

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

Closed
wants to merge 2 commits into from

Conversation

mroeschke
Copy link
Member

cc @jbrockmendel

Removed unused imports flagged by PyCharm. Compiled fine locally, waiting for CI to pass.

@mroeschke mroeschke added the Clean label Jul 7, 2018
@jreback jreback added this to the 0.24.0 milestone Jul 7, 2018
@jreback
Copy link
Contributor

jreback commented Jul 7, 2018

lgtm. merge on green.

@jreback
Copy link
Contributor

jreback commented Jul 8, 2018

@mroeschke

@mroeschke
Copy link
Member Author

@jbrockmendel Feel free to push directly to this PR.

@@ -38,14 +38,13 @@ import pytz


from tslibs.timedeltas cimport cast_from_unit
from tslibs.timedeltas import Timedelta, ints_to_pytimedelta # noqa:F841
Copy link
Member Author

Choose a reason for hiding this comment

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

Just to document, pandas.__init__ essentially grabs Timedelta from here (via pandas._libs.__init__). I think the fix is just to make sure Timedelta is directly grabbed from pandas/_libs/tslibs/timedeltas.pyx

@mroeschke
Copy link
Member Author

Closing in favor of #21816

@mroeschke mroeschke closed this Jul 8, 2018
@mroeschke mroeschke deleted the clean_cython_imports branch July 8, 2018 18:51
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