Skip to content

Commit 53c92be

Browse files
Reintroduce ArrayLike
1 parent 068e199 commit 53c92be

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas-stubs/core/dtypes/missing.pyi

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ from pandas import (
1010
Index,
1111
Series,
1212
)
13-
from pandas.core.arrays.base import ExtensionArray
1413
from typing_extensions import TypeGuard
1514

1615
from pandas._libs.missing import NAType
1716
from pandas._libs.tslibs import NaTType
1817
from pandas._typing import (
18+
ArrayLike,
1919
Scalar,
2020
ScalarT,
2121
)
@@ -28,9 +28,7 @@ def isna(obj: DataFrame) -> DataFrame: ...
2828
@overload
2929
def isna(obj: Series[Any]) -> Series[bool]: ...
3030
@overload
31-
def isna(
32-
obj: Index[Any] | list[Any] | ExtensionArray | np.ndarray[Any, Any]
33-
) -> npt.NDArray[np.bool_]: ...
31+
def isna(obj: Index[Any] | list[Any] | ArrayLike) -> npt.NDArray[np.bool_]: ...
3432
@overload
3533
def isna(
3634
obj: Scalar | NaTType | NAType | None,
@@ -43,9 +41,7 @@ def notna(obj: DataFrame) -> DataFrame: ...
4341
@overload
4442
def notna(obj: Series[Any]) -> Series[bool]: ...
4543
@overload
46-
def notna(
47-
obj: Index[Any] | list[Any] | ExtensionArray | np.ndarray[Any, Any]
48-
) -> npt.NDArray[np.bool_]: ...
44+
def notna(obj: Index[Any] | list[Any] | ArrayLike) -> npt.NDArray[np.bool_]: ...
4945
@overload
5046
def notna(obj: ScalarT | NaTType | NAType | None) -> TypeGuard[ScalarT]: ...
5147

0 commit comments

Comments
 (0)