Skip to content

Commit bad9882

Browse files
committed
fix(test): ignore mypy for now
1 parent 05fad40 commit bad9882

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_timefuncs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,8 @@ def test_series_types_to_numpy() -> None:
10421042
dtype=np.int64,
10431043
)
10441044
check(
1045-
assert_type(td_s.to_numpy(dtype=np.timedelta64), np_1darray[np.timedelta64]),
1045+
# mypy gives error: Expression is of type "ndarray[tuple[int], dtype[timedelta64[Any]]]", not "ndarray[tuple[int], dtype[timedelta64[timedelta | int | None]]]" [assert-type]
1046+
assert_type(td_s.to_numpy(dtype=np.timedelta64), np_1darray[np.timedelta64]), # type: ignore[assert-type]
10461047
np_1darray,
10471048
dtype=np.timedelta64,
10481049
)

0 commit comments

Comments
 (0)