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 f32deff9dafb8..c9ba13443e97c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -136,15 +136,9 @@ 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 -[mypy-pandas.tests.arrays.test_period] -ignore_errors=True - [mypy-pandas.tests.dtypes.test_common] ignore_errors=True @@ -190,9 +184,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