Skip to content

Commit 80c7167

Browse files
committed
TYP: use Shape alias in core/dtypes/cast.py
1 parent 98063d0 commit 80c7167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/dtypes/cast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
ints_to_pytimedelta,
3232
)
3333
from pandas._libs.tslibs.timezones import tz_compare
34-
from pandas._typing import AnyArrayLike, ArrayLike, Dtype, DtypeObj, Scalar
34+
from pandas._typing import AnyArrayLike, ArrayLike, Dtype, DtypeObj, Scalar, Shape
3535
from pandas.util._validators import validate_bool_kwarg
3636

3737
from pandas.core.dtypes.common import (
@@ -1607,7 +1607,7 @@ def find_common_type(types: List[DtypeObj]) -> DtypeObj:
16071607

16081608

16091609
def cast_scalar_to_array(
1610-
shape: Tuple, value: Scalar, dtype: Optional[DtypeObj] = None
1610+
shape: Shape, value: Scalar, dtype: Optional[DtypeObj] = None
16111611
) -> np.ndarray:
16121612
"""
16131613
Create np.ndarray of specified shape and dtype, filled with values.

0 commit comments

Comments
 (0)