Skip to content

Commit 067bf9d

Browse files
yogendrasoniproost
authored andcommitted
fix pandas-dev#28926 mypy error in pandas\tests\arrays\test_array.py (pandas-dev#28970)
1 parent 14e9ecc commit 067bf9d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

pandas/core/arrays/period.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,9 @@ def _raise_on_incompatible(left, right):
831831

832832

833833
def period_array(
834-
data: Sequence[Optional[Period]], freq: Optional[Tick] = None, copy: bool = False
834+
data: Sequence[Optional[Period]],
835+
freq: Optional[Union[str, Tick]] = None,
836+
copy: bool = False,
835837
) -> PeriodArray:
836838
"""
837839
Construct a new PeriodArray from a sequence of Period scalars.

setup.cfg

-9
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,9 @@ ignore_errors=True
136136
[mypy-pandas.tests.arithmetic.test_datetime64]
137137
ignore_errors=True
138138

139-
[mypy-pandas.tests.arrays.test_array]
140-
ignore_errors=True
141-
142139
[mypy-pandas.tests.arrays.test_datetimelike]
143140
ignore_errors=True
144141

145-
[mypy-pandas.tests.arrays.test_period]
146-
ignore_errors=True
147-
148142
[mypy-pandas.tests.dtypes.test_common]
149143
ignore_errors=True
150144

@@ -190,9 +184,6 @@ ignore_errors=True
190184
[mypy-pandas.tests.series.test_operators]
191185
ignore_errors=True
192186

193-
[mypy-pandas.tests.test_base]
194-
ignore_errors=True
195-
196187
[mypy-pandas.tests.tseries.offsets.test_offsets]
197188
ignore_errors=True
198189

0 commit comments

Comments
 (0)