File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ from pandas import (
10
10
Index ,
11
11
Series ,
12
12
)
13
- from pandas .core .arrays .base import ExtensionArray
14
13
from typing_extensions import TypeGuard
15
14
16
15
from pandas ._libs .missing import NAType
17
16
from pandas ._libs .tslibs import NaTType
18
17
from pandas ._typing import (
18
+ ArrayLike ,
19
19
Scalar ,
20
20
ScalarT ,
21
21
)
@@ -28,9 +28,7 @@ def isna(obj: DataFrame) -> DataFrame: ...
28
28
@overload
29
29
def isna (obj : Series [Any ]) -> Series [bool ]: ...
30
30
@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_ ]: ...
34
32
@overload
35
33
def isna (
36
34
obj : Scalar | NaTType | NAType | None ,
@@ -43,9 +41,7 @@ def notna(obj: DataFrame) -> DataFrame: ...
43
41
@overload
44
42
def notna (obj : Series [Any ]) -> Series [bool ]: ...
45
43
@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_ ]: ...
49
45
@overload
50
46
def notna (obj : ScalarT | NaTType | NAType | None ) -> TypeGuard [ScalarT ]: ...
51
47
You can’t perform that action at this time.
0 commit comments