File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
from datetime import timedelta
6
6
from functools import partial
7
7
import operator
8
- from typing import Any , Tuple
8
+ from typing import Any
9
9
import warnings
10
10
11
11
import numpy as np
12
12
13
13
from pandas ._libs import Timedelta , Timestamp , lib , ops as libops
14
- from pandas ._typing import ArrayLike
14
+ from pandas ._typing import ArrayLike , Shape
15
15
16
16
from pandas .core .dtypes .cast import (
17
17
construct_1d_object_array_from_listlike ,
@@ -427,15 +427,15 @@ def maybe_upcast_datetimelike_array(obj: ArrayLike) -> ArrayLike:
427
427
return obj
428
428
429
429
430
- def _maybe_upcast_for_op (obj , shape : Tuple [ int , ...] ):
430
+ def _maybe_upcast_for_op (obj , shape : Shape ):
431
431
"""
432
432
Cast non-pandas objects to pandas types to unify behavior of arithmetic
433
433
and comparison operations.
434
434
435
435
Parameters
436
436
----------
437
437
obj: object
438
- shape : tuple[int]
438
+ shape : tuple[int] or int
439
439
440
440
Returns
441
441
-------
You can’t perform that action at this time.
0 commit comments