@@ -879,8 +879,8 @@ def test_timedelta_cmp() -> None:
879
879
le = check (assert_type (c_dt_timedelta <= td , bool ), bool )
880
880
assert gt != le
881
881
882
- gt_b = check (assert_type (c_timedelta64 > td , Any ), bool )
883
- le_b = check (assert_type (c_timedelta64 <= td , Any ), bool )
882
+ gt_b = check (assert_type (c_timedelta64 > td , np . bool ), bool )
883
+ le_b = check (assert_type (c_timedelta64 <= td , np . bool ), bool )
884
884
assert gt_b != le_b
885
885
886
886
gt_a = check (
@@ -947,8 +947,8 @@ def test_timedelta_cmp() -> None:
947
947
ge = check (assert_type (c_dt_timedelta >= td , bool ), bool )
948
948
assert lt != ge
949
949
950
- lt_b = check (assert_type (c_timedelta64 < td , Any ), bool )
951
- ge_b = check (assert_type (c_timedelta64 >= td , Any ), bool )
950
+ lt_b = check (assert_type (c_timedelta64 < td , np . bool ), bool )
951
+ ge_b = check (assert_type (c_timedelta64 >= td , np . bool ), bool )
952
952
assert lt_b != ge_b
953
953
954
954
lt_a = check (
@@ -1271,8 +1271,8 @@ def test_timestamp_cmp() -> None:
1271
1271
check (assert_type (ts > c_series_dt64 , "pd.Series[bool]" ), pd .Series , np .bool_ )
1272
1272
check (assert_type (ts <= c_series_dt64 , "pd.Series[bool]" ), pd .Series , np .bool_ )
1273
1273
1274
- check (assert_type (c_np_dt64 > ts , Any ), bool )
1275
- check (assert_type (c_np_dt64 <= ts , Any ), bool )
1274
+ check (assert_type (c_np_dt64 > ts , np . bool ), bool )
1275
+ check (assert_type (c_np_dt64 <= ts , np . bool ), bool )
1276
1276
1277
1277
gt = check (assert_type (c_dt_datetime > ts , bool ), bool )
1278
1278
lte = check (assert_type (c_dt_datetime <= ts , bool ), bool )
@@ -1315,8 +1315,8 @@ def test_timestamp_cmp() -> None:
1315
1315
lt = check (assert_type (c_dt_datetime < ts , bool ), bool )
1316
1316
assert gte != lt
1317
1317
1318
- check (assert_type (c_np_dt64 >= ts , Any ), bool )
1319
- check (assert_type (c_np_dt64 < ts , Any ), bool )
1318
+ check (assert_type (c_np_dt64 >= ts , np . bool ), bool )
1319
+ check (assert_type (c_np_dt64 < ts , np . bool ), bool )
1320
1320
1321
1321
check (assert_type (c_datetimeindex >= ts , np_ndarray_bool ), np .ndarray , np .bool_ )
1322
1322
check (assert_type (c_datetimeindex < ts , np_ndarray_bool ), np .ndarray , np .bool_ )
0 commit comments