Skip to content

Commit b2d4312

Browse files
committed
use ListLike
1 parent cabdc3a commit b2d4312

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas-stubs/core/indexes/multi.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ from pandas._typing import (
2121
Dtype,
2222
DtypeArg,
2323
HashableT,
24+
ListLike,
2425
MaskType,
2526
np_ndarray_anyint,
2627
np_ndarray_bool,
@@ -29,8 +30,8 @@ from pandas._typing import (
2930
class MultiIndex(Index[Any]):
3031
def __new__(
3132
cls,
32-
levels: SequenceNotStr[SequenceNotStr[Hashable] | AnyArrayLike] = ...,
33-
codes: SequenceNotStr[SequenceNotStr[int]] = ...,
33+
levels: SequenceNotStr[ListLike] = ...,
34+
codes: SequenceNotStr[ListLike] = ...,
3435
sortorder: int | None = ...,
3536
names: SequenceNotStr[Hashable] = ...,
3637
copy: bool = ...,

0 commit comments

Comments
 (0)