Skip to content
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

TYP: Misc changes for pandas-stubs; use Protocol to avoid str in Sequence #55263

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Conversation

twoertwein
Copy link
Member

The first commit addresses some type issues found by running mypy on the tests from pandas-stubs (one big issue is that Index/Series are not included in IndexLabel; there might be cases where that is correct but in many cases they should be included).

The second commit re-writes #47233 with the protocol version of Sequence.

Can split it in two PRs if one of them is controversial.

@twoertwein twoertwein marked this pull request as ready for review September 24, 2023 15:43
@twoertwein twoertwein requested a review from Dr-Irv as a code owner September 24, 2023 15:43
@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Sep 25, 2023
Copy link
Contributor

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

I'm fine with these changes. Not sure who else should approve/merge.

We should port the SequenceNotStr over to pandas-stubs

@mroeschke mroeschke added this to the 2.2 milestone Sep 26, 2023
@mroeschke mroeschke merged commit 1f16762 into pandas-dev:main Sep 26, 2023
37 checks passed
@mroeschke
Copy link
Member

Thanks @twoertwein (you two are the typing authorities as far as I'm concerned :) )

@twoertwein twoertwein deleted the misc branch December 10, 2023 04:33
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.

3 participants