File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55from datetime import timedelta
66from functools import partial
77import operator
8- from typing import Any , Tuple
8+ from typing import Any
99import warnings
1010
1111import numpy as np
1212
1313from pandas ._libs import Timedelta , Timestamp , lib , ops as libops
14- from pandas ._typing import ArrayLike
14+ from pandas ._typing import ArrayLike , Shape
1515
1616from 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 -------
You can’t perform that action at this time.
0 commit comments