From 92e976976ed627c784503901ddccafa12823cd0f Mon Sep 17 00:00:00 2001 From: Vaibhav Vishal Date: Sat, 25 May 2019 05:30:34 +0530 Subject: [PATCH 1/3] remove the module from mypy.ini --- mypy.ini | 3 --- 1 file changed, 3 deletions(-) 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 From b311b6633077ba1c80f17329a94d33b78e5b698a Mon Sep 17 00:00:00 2001 From: Vaibhav Vishal Date: Sat, 25 May 2019 05:39:04 +0530 Subject: [PATCH 2/3] remove type comment --- pandas/core/indexes/period.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 044951ceda502..6afb9c24098c0 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 (1-dimensional) - 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 From 3e1a81a6480baacba5360ebea973a9a74d85e368 Mon Sep 17 00:00:00 2001 From: Vaibhav Vishal Date: Wed, 29 May 2019 17:38:22 +0530 Subject: [PATCH 3/3] update docstring --- pandas/core/indexes/period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 6afb9c24098c0..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) - PeriodArray, 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