Skip to content

Commit a91da0c

Browse files
vaibhavhrtjreback
authored andcommitted
Fix type annotations in pandas.core.indexes.period (#26518)
1 parent 93a67db commit a91da0c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

mypy.ini

-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ ignore_errors=True
77

88
[mypy-pandas.core.indexes.datetimelike]
99
ignore_errors=True
10-
11-
[mypy-pandas.core.indexes.period]
12-
ignore_errors=True

pandas/core/indexes/period.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin):
8080
8181
Parameters
8282
----------
83-
data : array-like (1-dimensional), optional
83+
data : array-like (1d integer np.ndarray or PeriodArray), optional
8484
Optional period-like data to construct index with
8585
copy : bool
8686
Make a copy of input ndarray
@@ -168,7 +168,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin):
168168
_is_numeric_dtype = False
169169
_infer_as_myclass = True
170170

171-
_data = None # type: PeriodArray
171+
_data = None
172172

173173
_engine_type = libindex.PeriodEngine
174174

0 commit comments

Comments
 (0)