Skip to content

Commit 053f903

Browse files
Update test_pandas_extensiontests.py
Simplify type annotations for _get_expected_exception to make Python 3.9 happy. Signed-off-by: Michael Tiemann <[email protected]>
1 parent 4ff2ec4 commit 053f903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pint_pandas/testsuite/test_pandas_extensiontests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class TestArithmeticOps(base.BaseArithmeticOpsTests):
349349

350350
def _get_expected_exception(
351351
self, op_name: str, obj, other
352-
) -> type[Exception] | None:
352+
): # -> type[Exception] | None, but Union types not understood by Python 3.9
353353
if op_name in ["__pow__", "__rpow__"]:
354354
return DimensionalityError
355355
if op_name in [

0 commit comments

Comments
 (0)