Skip to content

Commit ef6ab94

Browse files
committed
extra test case, use Collection
1 parent 3212e19 commit ef6ab94

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas-stubs/core/indexes/multi.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from 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,

tests/indexes/test_indexes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

7273
def test_index_astype() -> None:

0 commit comments

Comments
 (0)