Skip to content

Commit 3d39354

Browse files
committed
TYP: use Shape alias in core/internals/blocks.py
1 parent 1275fee commit 3d39354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pandas._libs.internals import BlockPlacement
1111
from pandas._libs.tslibs import conversion
1212
from pandas._libs.tslibs.timezones import tz_compare
13-
from pandas._typing import ArrayLike, Scalar
13+
from pandas._typing import ArrayLike, Scalar, Shape
1414
from pandas.util._validators import validate_bool_kwarg
1515

1616
from pandas.core.dtypes.cast import (
@@ -2760,7 +2760,7 @@ def _block_shape(values: ArrayLike, ndim: int = 1) -> ArrayLike:
27602760
return values
27612761

27622762

2763-
def safe_reshape(arr, new_shape):
2763+
def safe_reshape(arr, new_shape: Shape):
27642764
"""
27652765
If possible, reshape `arr` to have shape `new_shape`,
27662766
with a couple of exceptions (see gh-13012):

0 commit comments

Comments
 (0)