@@ -452,29 +452,29 @@ def test_datetimeindex_accessors() -> None:
452452 check (assert_type (i0 .date , np .ndarray ), np .ndarray , dt .date )
453453 check (assert_type (i0 .time , np .ndarray ), np .ndarray , dt .time )
454454 check (assert_type (i0 .timetz , np .ndarray ), np .ndarray , dt .time )
455- check (assert_type (i0 .year , "_IntIndexType" ), _IntIndexType , np .integer )
456- check (assert_type (i0 .month , "_IntIndexType" ), _IntIndexType , np .integer )
457- check (assert_type (i0 .day , "_IntIndexType" ), _IntIndexType , np .integer )
458- check (assert_type (i0 .hour , "_IntIndexType" ), _IntIndexType , np .integer )
459- check (assert_type (i0 .minute , "_IntIndexType" ), _IntIndexType , np .integer )
460- check (assert_type (i0 .second , "_IntIndexType" ), _IntIndexType , np .integer )
461- check (assert_type (i0 .microsecond , "_IntIndexType" ), _IntIndexType , np .integer )
462- check (assert_type (i0 .nanosecond , "_IntIndexType" ), _IntIndexType , np .integer )
463- check (assert_type (i0 .dayofweek , "_IntIndexType" ), _IntIndexType , np .integer )
464- check (assert_type (i0 .day_of_week , "_IntIndexType" ), _IntIndexType , np .integer )
465- check (assert_type (i0 .weekday , "_IntIndexType" ), _IntIndexType , np .integer )
466- check (assert_type (i0 .dayofyear , "_IntIndexType" ), _IntIndexType , np .integer )
467- check (assert_type (i0 .day_of_year , "_IntIndexType" ), _IntIndexType , np .integer )
468- check (assert_type (i0 .quarter , "_IntIndexType" ), _IntIndexType , np .integer )
455+ check (assert_type (i0 .year , "_IntIndexType" ), _IntIndexType , np .int32 )
456+ check (assert_type (i0 .month , "_IntIndexType" ), _IntIndexType , np .int32 )
457+ check (assert_type (i0 .day , "_IntIndexType" ), _IntIndexType , np .int32 )
458+ check (assert_type (i0 .hour , "_IntIndexType" ), _IntIndexType , np .int32 )
459+ check (assert_type (i0 .minute , "_IntIndexType" ), _IntIndexType , np .int32 )
460+ check (assert_type (i0 .second , "_IntIndexType" ), _IntIndexType , np .int32 )
461+ check (assert_type (i0 .microsecond , "_IntIndexType" ), _IntIndexType , np .int32 )
462+ check (assert_type (i0 .nanosecond , "_IntIndexType" ), _IntIndexType , np .int32 )
463+ check (assert_type (i0 .dayofweek , "_IntIndexType" ), _IntIndexType , np .int32 )
464+ check (assert_type (i0 .day_of_week , "_IntIndexType" ), _IntIndexType , np .int32 )
465+ check (assert_type (i0 .weekday , "_IntIndexType" ), _IntIndexType , np .int32 )
466+ check (assert_type (i0 .dayofyear , "_IntIndexType" ), _IntIndexType , np .int32 )
467+ check (assert_type (i0 .day_of_year , "_IntIndexType" ), _IntIndexType , np .int32 )
468+ check (assert_type (i0 .quarter , "_IntIndexType" ), _IntIndexType , np .int32 )
469469 check (assert_type (i0 .is_month_start , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
470470 check (assert_type (i0 .is_month_end , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
471471 check (assert_type (i0 .is_quarter_start , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
472472 check (assert_type (i0 .is_quarter_end , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
473473 check (assert_type (i0 .is_year_start , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
474474 check (assert_type (i0 .is_year_end , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
475475 check (assert_type (i0 .is_leap_year , npt .NDArray [np .bool_ ]), np .ndarray , np .bool_ )
476- check (assert_type (i0 .daysinmonth , "_IntIndexType" ), _IntIndexType , np .integer )
477- check (assert_type (i0 .days_in_month , "_IntIndexType" ), _IntIndexType , np .integer )
476+ check (assert_type (i0 .daysinmonth , "_IntIndexType" ), _IntIndexType , np .int32 )
477+ check (assert_type (i0 .days_in_month , "_IntIndexType" ), _IntIndexType , np .int32 )
478478 check (assert_type (i0 .tz , Optional [dt .tzinfo ]), type (None ))
479479 check (assert_type (i0 .freq , Optional [BaseOffset ]), BaseOffset )
480480 check (assert_type (i0 .isocalendar (), pd .DataFrame ), pd .DataFrame )
0 commit comments