Skip to content

TYP: datetimelike #41830

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 3 commits into from
Jun 11, 2021
Merged

TYP: datetimelike #41830

merged 3 commits into from
Jun 11, 2021

Conversation

jbrockmendel
Copy link
Member

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

@gfyoung gfyoung added the Typing type annotations, mypy/pyright type checking label Jun 7, 2021
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

@jreback jreback added this to the 1.3 milestone Jun 10, 2021
@@ -178,9 +180,9 @@ def test_dt_accessor_api_for_categorical(self):
get_ops = lambda x: x._datetimelike_ops

test_data = [
("Datetime", get_ops(DatetimeIndex), s_dr, c_dr),
("Datetime", get_ops(DatetimeArray), s_dr, c_dr),
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't the index accessors work as well here (eg the intent of the test is that)

Copy link
Member Author

Choose a reason for hiding this comment

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

yah, its just the lists DatetimeIndex._foo_ops that we stop inheriting

@jreback jreback merged commit deaa922 into pandas-dev:master Jun 11, 2021
@jbrockmendel jbrockmendel deleted the ref-ndea branch June 11, 2021 14:52
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants