Skip to content

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
@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