-
-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
As discussed here, pd.notna
(and also pd.isna
) do not work with pyright strict mode.
This is due to the missing type parameters for Series
, list
, Index
and ArrayLike
in these two overloads
@overload
def notna(obj: Series) -> Series[bool]: ...
@overload
def notna(obj: Index | list | ArrayLike) -> npt.NDArray[np.bool_]: ...
The fix would be to add the required type parameters (or Any) to them. However i am not sure if/what bounds are needed for these type parameters.
Metadata
Metadata
Assignees
Labels
No labels