@@ -879,8 +879,8 @@ def test_timedelta_cmp() -> None:
879879 le = check (assert_type (c_dt_timedelta <= td , bool ), bool )
880880 assert gt != le
881881
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 )
884884 assert gt_b != le_b
885885
886886 gt_a = check (
@@ -947,8 +947,8 @@ def test_timedelta_cmp() -> None:
947947 ge = check (assert_type (c_dt_timedelta >= td , bool ), bool )
948948 assert lt != ge
949949
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 )
952952 assert lt_b != ge_b
953953
954954 lt_a = check (
@@ -1271,8 +1271,8 @@ def test_timestamp_cmp() -> None:
12711271 check (assert_type (ts > c_series_dt64 , "pd.Series[bool]" ), pd .Series , np .bool_ )
12721272 check (assert_type (ts <= c_series_dt64 , "pd.Series[bool]" ), pd .Series , np .bool_ )
12731273
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 )
12761276
12771277 gt = check (assert_type (c_dt_datetime > ts , bool ), bool )
12781278 lte = check (assert_type (c_dt_datetime <= ts , bool ), bool )
@@ -1315,8 +1315,8 @@ def test_timestamp_cmp() -> None:
13151315 lt = check (assert_type (c_dt_datetime < ts , bool ), bool )
13161316 assert gte != lt
13171317
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 )
13201320
13211321 check (assert_type (c_datetimeindex >= ts , np_ndarray_bool ), np .ndarray , np .bool_ )
13221322 check (assert_type (c_datetimeindex < ts , np_ndarray_bool ), np .ndarray , np .bool_ )
0 commit comments