Skip to content

CLEAN: use preferred pattern for index accessors #346

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 4 commits into from
Sep 30, 2022

Conversation

Dr-Irv
Copy link
Collaborator

@Dr-Irv Dr-Irv commented Sep 30, 2022

pyright 1.1.271 had a bug microsoft/pyright#3955 with my preferred way of handling some accessors, that was fixed in 1.1.272, so this PR uses the preferred implementation.

@Dr-Irv Dr-Irv requested a review from twoertwein September 30, 2022 17:17
@bashtage
Copy link
Contributor

Does this need tests, or do some already exist?

@Dr-Irv
Copy link
Collaborator Author

Dr-Irv commented Sep 30, 2022

Does this need tests, or do some already exist?

The tests already exist. What this change does is make it so we have one set of declarations for round, ceil, etc., whereas I had to do two before because of the pyright bug.

Copy link
Member

@twoertwein twoertwein left a comment

Choose a reason for hiding this comment

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

Looks good to me - glad to re-use the definitions from _DatetimeRoundingMethods[TimedeltaIndex]!

@twoertwein twoertwein merged commit cd62cb8 into pandas-dev:main Sep 30, 2022
@twoertwein
Copy link
Member

Thanks @Dr-Irv !

@Dr-Irv Dr-Irv deleted the tdindex_pyright branch December 28, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants