@@ -1387,20 +1387,16 @@ def test_timestamp_cmp() -> None:
1387
1387
)
1388
1388
assert (eq_arr != ne_arr ).all ()
1389
1389
1390
- eq_arr = check (
1391
- assert_type (ts == c_np_ndarray_dt64 , np_ndarray_bool ), np .ndarray , np .bool_
1392
- )
1393
- ne_arr = check (
1394
- assert_type (ts != c_np_ndarray_dt64 , np_ndarray_bool ), np .ndarray , np .bool_
1395
- )
1390
+ assert_type (ts == c_np_ndarray_dt64 , np_ndarray_bool )
1391
+ eq_arr = check (ts == c_np_ndarray_dt64 , np .ndarray , np .bool_ )
1392
+ assert_type (ts != c_np_ndarray_dt64 , np_ndarray_bool )
1393
+ ne_arr = check (ts != c_np_ndarray_dt64 , np .ndarray , np .bool_ )
1396
1394
assert (eq_arr != ne_arr ).all ()
1397
1395
# TODO: the following should be 2D-arrays but it doesn't work in mypy
1398
- eq_arr = check (
1399
- assert_type (ts == c_np_2darray_dt64 , np_ndarray_bool ), np_ndarray_bool
1400
- )
1401
- ne_arr = check (
1402
- assert_type (ts != c_np_2darray_dt64 , np_ndarray_bool ), np_ndarray_bool
1403
- )
1396
+ assert_type (ts == c_np_2darray_dt64 , np_ndarray_bool )
1397
+ eq_arr = check (ts == c_np_2darray_dt64 , np_ndarray_bool )
1398
+ assert_type (ts != c_np_2darray_dt64 , np_ndarray_bool )
1399
+ ne_arr = check (ts != c_np_2darray_dt64 , np_ndarray_bool )
1404
1400
assert (eq_arr != ne_arr ).all ()
1405
1401
1406
1402
eq_s = check (
0 commit comments