Fix type annotations in pandas.core.indexes.period
Part of #25882 

Current errors are:

    pandas\core\indexes\period.py:171: error: Incompatible types in assignment (expression has type "PeriodArray", base class "DatetimeIndexOpsMixin" defined the type as "None")