Skip to content

Commit fe5f1a9

Browse files
committed
1 parent d7a538d commit fe5f1a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_indexes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,8 @@ def test_append_mix() -> None:
10421042
check(assert_type(first.append([third]), pd.Index), pd.Index)
10431043
check(assert_type(first.append([second, third]), pd.Index), pd.Index)
10441044

1045+
# mypy thinks the following two are of the type `Index[Any]`, whereas
1046+
# pyright recognises them as `Index[int | str]`
10451047
check(
10461048
assert_type( # type: ignore[assert-type]
10471049
third.append([]), "pd.Index[int | str]"

0 commit comments

Comments
 (0)