Fix type annotations in pandas.core.indexes.period (#26518) · pandas-dev/pandas@a91da0c (original) (raw)

Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin):
80 80
81 81 Parameters
82 82 ----------
83 - data : array-like (1-dimensional), optional
83 + data : array-like (1d integer np.ndarray or PeriodArray), optional
84 84 Optional period-like data to construct index with
85 85 copy : bool
86 86 Make a copy of input ndarray
@@ -168,7 +168,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin):
168 168 _is_numeric_dtype = False
169 169 _infer_as_myclass = True
170 170
171 -_data = None # type: PeriodArray
171 +_data = None
172 172
173 173 _engine_type = libindex.PeriodEngine
174 174