From ad05052f77c829d7d687b2220b33ed1c668c759a Mon Sep 17 00:00:00 2001 From: yogendra Date: Mon, 14 Oct 2019 14:08:55 +0530 Subject: [PATCH 1/3] fixed typing of PeriodArray --- pandas/core/arrays/period.py | 4 +++- setup.cfg | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index a21d9e67e49e5..78cc54db4b1b8 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -831,7 +831,9 @@ def _raise_on_incompatible(left, right): def period_array( - data: Sequence[Optional[Period]], freq: Optional[Tick] = None, copy: bool = False + data: Sequence[Optional[Period]], + freq: Optional[Union[str, Tick]] = None, + copy: bool = False, ) -> PeriodArray: """ Construct a new PeriodArray from a sequence of Period scalars. diff --git a/setup.cfg b/setup.cfg index 64494bf84363e..57823af24d323 100644 --- a/setup.cfg +++ b/setup.cfg @@ -136,9 +136,6 @@ ignore_errors=True [mypy-pandas.tests.arithmetic.test_datetime64] ignore_errors=True -[mypy-pandas.tests.arrays.test_array] -ignore_errors=True - [mypy-pandas.tests.arrays.test_datetimelike] ignore_errors=True From 698ef1d51d51d51c0cb60879689ceec5c9de3ffe Mon Sep 17 00:00:00 2001 From: yogendra Date: Tue, 15 Oct 2019 23:17:34 +0530 Subject: [PATCH 2/3] remove the sections in setup.cfg for pandas\tests\arrays\test_period.py and pandas\tests\test_base.py --- setup.cfg | 6 ------ 1 file changed, 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index 57823af24d323..813c31c8d071f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -139,9 +139,6 @@ ignore_errors=True [mypy-pandas.tests.arrays.test_datetimelike] ignore_errors=True -[mypy-pandas.tests.arrays.test_period] -ignore_errors=True - [mypy-pandas.tests.computation.test_eval] ignore_errors=True @@ -217,9 +214,6 @@ ignore_errors=True [mypy-pandas.tests.series.test_operators] ignore_errors=True -[mypy-pandas.tests.test_base] -ignore_errors=True - [mypy-pandas.tests.tseries.offsets.test_offsets] ignore_errors=True From 90af5be22f68404bfcca609358d301c119f545ef Mon Sep 17 00:00:00 2001 From: yogendra Date: Mon, 21 Oct 2019 15:49:49 +0530 Subject: [PATCH 3/3] remove myot test_period --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index c72eadb231f19..c9ba13443e97c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -139,9 +139,6 @@ ignore_errors=True [mypy-pandas.tests.arrays.test_datetimelike] ignore_errors=True -[mypy-pandas.tests.arrays.test_period] -ignore_errors=True - [mypy-pandas.tests.dtypes.test_common] ignore_errors=True