File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
pandas-stubs/core/indexes Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11from collections .abc import (
22 Callable ,
3+ Collection ,
34 Hashable ,
45 Iterable ,
56 Mapping ,
@@ -171,7 +172,7 @@ class MultiIndex(Index):
171172 ) -> np_1darray_bool : ...
172173 @overload
173174 def isin ( # pyright: ignore[reportIncompatibleMethodOverride]
174- self , values : Iterable [Iterable [Any ]], level : None = None
175+ self , values : Collection [Iterable [Any ]], level : None = None
175176 ) -> np_1darray_bool : ...
176177 def set_names (
177178 self ,
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def test_index_isin() -> None:
6767 check (assert_type (mi .isin ([[3 ]]), np_1darray_bool ), np_1darray_bool )
6868 if TYPE_CHECKING_INVALID_USAGE :
6969 mi .isin ({3 }) # type: ignore[arg-type] # pyright: ignore[reportArgumentType]
70+ mi .isin (iter ({3 })) # type: ignore[arg-type] # pyright: ignore[reportArgumentType]
7071
7172
7273def test_index_astype () -> None :
You can’t perform that action at this time.
0 commit comments