diff --git a/mypy.ini b/mypy.ini index 3df8fd13a2a75..eea6a3b551677 100644 --- a/mypy.ini +++ b/mypy.ini @@ -7,6 +7,3 @@ ignore_errors=True [mypy-pandas.core.indexes.datetimelike] ignore_errors=True - -[mypy-pandas.core.indexes.period] -ignore_errors=True diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 044951ceda502..64272431cf703 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -80,7 +80,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin): Parameters ---------- - data : array-like (1-dimensional), optional + data : array-like (1d integer np.ndarray or PeriodArray), optional Optional period-like data to construct index with copy : bool Make a copy of input ndarray @@ -168,7 +168,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin): _is_numeric_dtype = False _infer_as_myclass = True - _data = None # type: PeriodArray + _data = None _engine_type = libindex.PeriodEngine