Skip to content

Commit 2e9b0d1

Browse files
try fixing type annotations
1 parent ea4163d commit 2e9b0d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/tests/extension/base/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BaseOpsUtil:
2424

2525
def _get_expected_exception(
2626
self, op_name: str, obj, other
27-
) -> type[Exception] | tuple[type[Exception]] | None:
27+
) -> type[Exception] | tuple[type[Exception], ...] | None:
2828
# Find the Exception, if any we expect to raise calling
2929
# obj.__op_name__(other)
3030

pandas/tests/extension/decimal/test_decimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def data_for_grouping():
6868
class TestDecimalArray(base.ExtensionTests):
6969
def _get_expected_exception(
7070
self, op_name: str, obj, other
71-
) -> type[Exception] | tuple[type[Exception]] | None:
71+
) -> type[Exception] | tuple[type[Exception], ...] | None:
7272
return None
7373

7474
def _supports_reduction(self, ser: pd.Series, op_name: str) -> bool:

pandas/tests/extension/test_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_fillna_no_op_returns_copy(self, data):
165165

166166
def _get_expected_exception(
167167
self, op_name: str, obj, other
168-
) -> type[Exception] | tuple[type[Exception]] | None:
168+
) -> type[Exception] | tuple[type[Exception], ...] | None:
169169
if op_name in [
170170
"__mod__",
171171
"__rmod__",

0 commit comments

Comments
 (0)