|
42 | 42 |
|
43 | 43 | from pandas.core.dtypes.dtypes import CategoricalDtypeType
|
44 | 44 |
|
45 |
| -from pandas._typing import Dtype |
46 | 45 | import pandas as pd
|
47 | 46 | import pandas._testing as tm
|
48 | 47 | from pandas.api.types import (
|
|
59 | 58 | pa = pytest.importorskip("pyarrow", minversion="7.0.0")
|
60 | 59 |
|
61 | 60 | from pandas.core.arrays.arrow.array import ArrowExtensionArray
|
| 61 | + |
62 | 62 | from pandas.core.arrays.arrow.dtype import ArrowDtype # isort:skip
|
63 | 63 |
|
64 | 64 |
|
| 65 | + |
65 | 66 | @pytest.fixture(params=tm.ALL_PYARROW_DTYPES, ids=str)
|
66 | 67 | def dtype(request):
|
67 | 68 | return ArrowDtype(pyarrow_dtype=request.param)
|
@@ -505,15 +506,15 @@ def test_reduce_series(self, data, all_numeric_reductions, skipna, request):
|
505 | 506 | request.node.add_marker(xfail_mark)
|
506 | 507 | super().test_reduce_series(data, all_numeric_reductions, skipna)
|
507 | 508 |
|
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): |
509 | 510 | if op_name in ["count", "kurt", "sem", "skew"]:
|
510 | 511 | pytest.skip(f"{op_name} not an array method")
|
511 | 512 |
|
512 | 513 | arr = ser.array
|
513 | 514 | kwargs = {"ddof": 1} if op_name in ["var", "std"] else {}
|
514 | 515 |
|
515 | 516 | if op_name in ["max", "min"]:
|
516 |
| - cmp_dtype: Dtype = arr.dtype |
| 517 | + cmp_dtype = arr.dtype |
517 | 518 | elif arr.dtype.name == "decimal128(7, 3)[pyarrow]":
|
518 | 519 | if op_name not in ["median", "var", "std"]:
|
519 | 520 | cmp_dtype = arr.dtype
|
|
0 commit comments