We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa846a1 commit c83c631Copy full SHA for c83c631
tests/test_scalars.py
@@ -1322,6 +1322,7 @@ def test_timestamp_cmp_index() -> None:
1322
eq_dt1 = check(assert_type(ts == dt_idx, np_1darray[np.bool]), np_1darray[np.bool])
1323
ne_dt1 = check(assert_type(ts != dt_idx, np_1darray[np.bool]), np_1darray[np.bool])
1324
assert (eq_dt1 != ne_dt1).all()
1325
+ # there is a mypy bug where ts.__eq__(Index) gets revealed as Any and not np_1darray
1326
eq_un1 = check(assert_type(ts == un_idx, np_1darray[np.bool]), np_1darray[np.bool]) # type: ignore[assert-type]
1327
ne_un1 = check(assert_type(ts != un_idx, np_1darray[np.bool]), np_1darray[np.bool]) # type: ignore[assert-type]
1328
assert (eq_un1 != ne_un1).all()
0 commit comments