Skip to content

TYP: ExtensionArray.take accept np.ndarray #43418

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 15 commits into from
Sep 26, 2021
Prev Previous commit
Next Next commit
use TYPE_CHECKING
  • Loading branch information
twoertwein committed Sep 20, 2021
commit 58ac439b27b8f56a75eddf549bf13e49ff413da3
2 changes: 1 addition & 1 deletion pandas/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
PositionalIndexer = Union[ScalarIndexer, SequenceIndexer]
PositionalIndexerTuple = Tuple[PositionalIndexer, PositionalIndexer]
PositionalIndexer2D = Union[PositionalIndexer, PositionalIndexerTuple]
if npt is not None:
if TYPE_CHECKING:
TakeIndexer = Union[Sequence[int], Sequence[np.integer], npt.NDArray[np.integer]]
else:
TakeIndexer = Union[Sequence[int], Sequence[np.integer], np.ndarray]
Expand Down