Skip to content

Commit d3fec83

Browse files
authored
remove Any from np.ndarray declarations in _typing.pyi (pandas-dev#1211)
1 parent 371cdfa commit d3fec83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas-stubs/_typing.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ from pandas.io.formats.format import EngFormatter
5858
# where it is the only acceptable type.
5959
Incomplete: TypeAlias = Any
6060

61-
ArrayLike: TypeAlias = ExtensionArray | np.ndarray[Any, Any]
61+
ArrayLike: TypeAlias = ExtensionArray | np.ndarray
6262
AnyArrayLike: TypeAlias = ArrayLike | Index[Any] | Series[Any]
6363
PythonScalar: TypeAlias = str | bool | complex
6464
DatetimeLikeScalar = TypeVar("DatetimeLikeScalar", bound=Period | Timestamp | Timedelta)
@@ -482,7 +482,7 @@ KeysArgType: TypeAlias = Any
482482
ListLike: TypeAlias = Sequence | np.ndarray | Series | Index
483483
ListLikeT = TypeVar("ListLikeT", bound=ListLike)
484484
ListLikeExceptSeriesAndStr: TypeAlias = (
485-
MutableSequence[Any] | np.ndarray[Any, Any] | tuple[Any, ...] | Index[Any]
485+
MutableSequence[Any] | np.ndarray | tuple[Any, ...] | Index[Any]
486486
)
487487
ListLikeU: TypeAlias = Sequence | np.ndarray | Series | Index
488488
ListLikeHashable: TypeAlias = (

0 commit comments

Comments
 (0)