-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
CLN: removed unused import #32518
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
CLN: removed unused import #32518
Conversation
I also benched marked it: master:
PR:
|
from cpython.datetime cimport (datetime, date, | ||
PyDateTime_IMPORT, | ||
PyDateTime_GET_YEAR, PyDateTime_GET_MONTH, | ||
PyDateTime_GET_DAY, PyDateTime_DATE_GET_HOUR, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i find the year-month-day-hour-minute-second ordering clearer than the alphabetical ordering. its not worth bikeshedding, which is why id discourage these for the most part
also makes it harder to see what the actual removed imports are (datetime and date, right?). That part im on board with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i find the year-month-day-hour-minute-second ordering clearer than the alphabetical ordering. its not worth bikeshedding, which is why id discourage these for the most part
Agreed, I have no idea how to enforce it with isort
also makes it harder to see what the actual removed imports are (datetime and date, right?). That part im on board with.
Correct, that's why I did it in two commits and not in one, as you an see after the removal of the unused imports what is left looks pretty ugly, so I figured I run isort
on that specific import block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Why is isort not complaining with the original code? Is it validating that file? |
@datapythonista I think you ment |
@datapythonista @jbrockmendel any outstanding objections? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
lgtm |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Not 100% sure about this, can close anytime if not a good PR