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 return types #57285

Merged
merged 1 commit into from
Feb 7, 2024
Merged

TYP: misc return types #57285

merged 1 commit into from
Feb 7, 2024

Conversation

twoertwein
Copy link
Member

No description provided.

indexer: npt.NDArray[np.intp],
new_index: Index,
) -> NDFrameT:
) -> DataFrame | Series:
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to switch to the overloads as Series._constructor returns type[Series] and not type[Self]

@twoertwein twoertwein marked this pull request as ready for review February 7, 2024 02:55
@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Feb 7, 2024
@mroeschke mroeschke added this to the 3.0 milestone Feb 7, 2024
@mroeschke mroeschke merged commit 9b3c301 into pandas-dev:main Feb 7, 2024
51 checks passed
@mroeschke
Copy link
Member

Thanks @twoertwein

@twoertwein twoertwein deleted the misc branch February 10, 2024 20:34
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
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.

2 participants