Skip to content

Commit 3b3c2ee

Browse files
committed
astrah-sh/ty#4157
1 parent 3373f38 commit 3b3c2ee

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tests/frame/test_frame.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,10 +3319,9 @@ def test_func(_: Hashable) -> None:
33193319
pass
33203320

33213321
if TYPE_CHECKING_INVALID_USAGE:
3322-
# TODO: astral-sh/ty#4157 need ty ignores here
3323-
test_func(pd.DataFrame()) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type]
3324-
test_func(pd.Series([], dtype=object)) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type]
3325-
test_func(pd.Index([])) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type]
3322+
test_func(pd.DataFrame()) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type] # ty: ignore[invalid-argument-type]
3323+
test_func(pd.Series([], dtype=object)) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type] # ty: ignore[invalid-argument-type]
3324+
test_func(pd.Index([])) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type] # ty: ignore[invalid-argument-type]
33263325

33273326

33283327
def test_resample() -> None:
@@ -3804,8 +3803,7 @@ def test_xs_frame_new() -> None:
38043803
check(assert_type(s2, pd.Series | pd.DataFrame), pd.Series)
38053804

38063805
if TYPE_CHECKING_INVALID_USAGE:
3807-
# TODO: astral-sh/ty#4157 need ty ignore here
3808-
df.xs(["mammel"]) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type]
3806+
df.xs(["mammel"]) # type: ignore[arg-type] # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type] # ty: ignore[invalid-argument-type]
38093807

38103808

38113809
def test_align() -> None:

0 commit comments

Comments
 (0)