@@ -880,8 +880,8 @@ def test_timedelta_cmp() -> None:
880
880
le = check (assert_type (c_dt_timedelta <= td , bool ), bool )
881
881
assert gt != le
882
882
883
- gt_b = check (assert_type (c_timedelta64 > td , Any ), np . bool_ )
884
- le_b = check (assert_type (c_timedelta64 <= td , Any ), np . bool_ )
883
+ gt_b = check (assert_type (c_timedelta64 > td , Any ), bool )
884
+ le_b = check (assert_type (c_timedelta64 <= td , Any ), bool )
885
885
assert gt_b != le_b
886
886
887
887
gt_a = check (
@@ -948,8 +948,8 @@ def test_timedelta_cmp() -> None:
948
948
ge = check (assert_type (c_dt_timedelta >= td , bool ), bool )
949
949
assert lt != ge
950
950
951
- lt_b = check (assert_type (c_timedelta64 < td , Any ), np . bool_ )
952
- ge_b = check (assert_type (c_timedelta64 >= td , Any ), np . bool_ )
951
+ lt_b = check (assert_type (c_timedelta64 < td , Any ), bool )
952
+ ge_b = check (assert_type (c_timedelta64 >= td , Any ), bool )
953
953
assert lt_b != ge_b
954
954
955
955
lt_a = check (
@@ -1038,8 +1038,8 @@ def test_timedelta_cmp_rhs() -> None:
1038
1038
ne = check (assert_type (c_dt_timedelta != td , bool ), bool )
1039
1039
assert eq != ne
1040
1040
1041
- eq = check (assert_type (c_timedelta64 == td , Any ), np . bool_ )
1042
- ne = check (assert_type (c_timedelta64 != td , Any ), np . bool_ )
1041
+ eq = check (assert_type (c_timedelta64 == td , Any ), bool )
1042
+ ne = check (assert_type (c_timedelta64 != td , Any ), bool )
1043
1043
assert eq != ne
1044
1044
1045
1045
eq_a = check (assert_type (c_ndarray_td64 == td , Any ), np .ndarray , np .bool_ )
@@ -1270,8 +1270,8 @@ def test_timestamp_cmp() -> None:
1270
1270
check (assert_type (ts > c_series_dt64 , "pd.Series[bool]" ), pd .Series , np .bool_ )
1271
1271
check (assert_type (ts <= c_series_dt64 , "pd.Series[bool]" ), pd .Series , np .bool_ )
1272
1272
1273
- check (assert_type (c_np_dt64 > ts , Any ), np . bool_ )
1274
- check (assert_type (c_np_dt64 <= ts , Any ), np . bool_ )
1273
+ check (assert_type (c_np_dt64 > ts , Any ), bool )
1274
+ check (assert_type (c_np_dt64 <= ts , Any ), bool )
1275
1275
1276
1276
gt = check (assert_type (c_dt_datetime > ts , bool ), bool )
1277
1277
lte = check (assert_type (c_dt_datetime <= ts , bool ), bool )
@@ -1314,8 +1314,8 @@ def test_timestamp_cmp() -> None:
1314
1314
lt = check (assert_type (c_dt_datetime < ts , bool ), bool )
1315
1315
assert gte != lt
1316
1316
1317
- check (assert_type (c_np_dt64 >= ts , Any ), np . bool_ )
1318
- check (assert_type (c_np_dt64 < ts , Any ), np . bool_ )
1317
+ check (assert_type (c_np_dt64 >= ts , Any ), bool )
1318
+ check (assert_type (c_np_dt64 < ts , Any ), bool )
1319
1319
1320
1320
check (assert_type (c_datetimeindex >= ts , np_ndarray_bool ), np .ndarray , np .bool_ )
1321
1321
check (assert_type (c_datetimeindex < ts , np_ndarray_bool ), np .ndarray , np .bool_ )
@@ -1388,8 +1388,8 @@ def test_timestamp_eq_ne_rhs() -> None:
1388
1388
[1 , 2 , 3 ], dtype = "datetime64[ns]"
1389
1389
)
1390
1390
1391
- eq_a = check (assert_type (c_np_dt64 == ts , Any ), np . bool_ )
1392
- ne_a = check (assert_type (c_np_dt64 != ts , Any ), np . bool_ )
1391
+ eq_a = check (assert_type (c_np_dt64 == ts , Any ), bool )
1392
+ ne_a = check (assert_type (c_np_dt64 != ts , Any ), bool )
1393
1393
assert eq_a != ne_a
1394
1394
1395
1395
eq = check (assert_type (c_dt_datetime == ts , bool ), bool )
0 commit comments