Skip to content

TYP: fix mid and length for Interval and Intervalarray #46472

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 19 commits into from
Mar 22, 2022

Conversation

Dr-Irv
Copy link
Contributor

@Dr-Irv Dr-Irv commented Mar 22, 2022

In the process of doing the types in the MS stubs, discovered that length and mid have really different return types for Interval and IntervalArray, so this PR fixes that by moving length and mid out of IntervalMixin

Not typing the rest of IntervalArray yet.

@Dr-Irv Dr-Irv requested a review from twoertwein March 22, 2022 13:20
@Dr-Irv Dr-Irv added Interval Interval data type Typing type annotations, mypy/pyright type checking labels Mar 22, 2022
@jreback jreback added this to the 1.5 milestone Mar 22, 2022
@jreback jreback merged commit 6d7e004 into pandas-dev:main Mar 22, 2022
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
@Dr-Irv Dr-Irv deleted the typintervalarray branch February 13, 2023 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants