Skip to content

REF: date arg not reachable in DTI._maybe_cast_slice_bound #42855

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
Aug 5, 2021

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Aug 2, 2021

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Tracked all the places where _maybe_cast_slice_bound is called and concluded that stdlib date objects are [update: almost] always handled by caller, so don't need to be handled in _maybe_cast_slice bound. Removing that special-casing (this PR) will allow us to share the method between DTI/TDI/PI (next PR)

@jreback jreback added the Refactor Internal refactoring of code label Aug 5, 2021
@jreback jreback added this to the 1.4 milestone Aug 5, 2021
@jreback jreback merged commit 6ef154e into pandas-dev:master Aug 5, 2021
@jbrockmendel jbrockmendel deleted the ref-maybe_cast_slice_bound branch August 5, 2021 02:42
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants