Skip to content

Commit 61e859e

Browse files
committed
fix errors III
1 parent 5e6372e commit 61e859e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/extension/test_arrow.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
from pandas.core.dtypes.dtypes import CategoricalDtypeType
4444

45-
from pandas._typing import Dtype
4645
import pandas as pd
4746
import pandas._testing as tm
4847
from pandas.api.types import (
@@ -59,9 +58,11 @@
5958
pa = pytest.importorskip("pyarrow", minversion="7.0.0")
6059

6160
from pandas.core.arrays.arrow.array import ArrowExtensionArray
61+
6262
from pandas.core.arrays.arrow.dtype import ArrowDtype # isort:skip
6363

6464

65+
6566
@pytest.fixture(params=tm.ALL_PYARROW_DTYPES, ids=str)
6667
def dtype(request):
6768
return ArrowDtype(pyarrow_dtype=request.param)
@@ -505,15 +506,15 @@ def test_reduce_series(self, data, all_numeric_reductions, skipna, request):
505506
request.node.add_marker(xfail_mark)
506507
super().test_reduce_series(data, all_numeric_reductions, skipna)
507508

508-
def check_reduce_with_wrap(self, ser: pd.Series, op_name: str, skipna: bool):
509+
def check_reduce_with_wrap(self, ser, op_name, skipna):
509510
if op_name in ["count", "kurt", "sem", "skew"]:
510511
pytest.skip(f"{op_name} not an array method")
511512

512513
arr = ser.array
513514
kwargs = {"ddof": 1} if op_name in ["var", "std"] else {}
514515

515516
if op_name in ["max", "min"]:
516-
cmp_dtype: Dtype = arr.dtype
517+
cmp_dtype = arr.dtype
517518
elif arr.dtype.name == "decimal128(7, 3)[pyarrow]":
518519
if op_name not in ["median", "var", "std"]:
519520
cmp_dtype = arr.dtype

0 commit comments

Comments
 (0)