Skip to content

Commit bba7353

Browse files
committed
TYP: use Shape alias in core/internals/managers.py
1 parent 290c5f4 commit bba7353

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/ops/array_ops.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
from datetime import timedelta
66
from functools import partial
77
import operator
8-
from typing import Any, Tuple
8+
from typing import Any
99
import warnings
1010

1111
import numpy as np
1212

1313
from pandas._libs import Timedelta, Timestamp, lib, ops as libops
14-
from pandas._typing import ArrayLike
14+
from pandas._typing import ArrayLike, Shape
1515

1616
from pandas.core.dtypes.cast import (
1717
construct_1d_object_array_from_listlike,
@@ -427,15 +427,15 @@ def maybe_upcast_datetimelike_array(obj: ArrayLike) -> ArrayLike:
427427
return obj
428428

429429

430-
def _maybe_upcast_for_op(obj, shape: Tuple[int, ...]):
430+
def _maybe_upcast_for_op(obj, shape: Shape):
431431
"""
432432
Cast non-pandas objects to pandas types to unify behavior of arithmetic
433433
and comparison operations.
434434
435435
Parameters
436436
----------
437437
obj: object
438-
shape : tuple[int]
438+
shape : tuple[int] or int
439439
440440
Returns
441441
-------

0 commit comments

Comments
 (0)