diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 96a075dd21bf9..235bd2753742f 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -272,7 +272,7 @@ def _generate_range(cls, start, end, periods, freq, fields): def _unbox_scalar( self, value: Union[Period, NaTType], setitem: bool = False - ) -> int: + ) -> np.int64: if value is NaT: return np.int64(value.value) elif isinstance(value, self._scalar_type):