Skip to content

Commit 1380df8

Browse files
committed
TYP: use Shape alias in core/internals/blocks.py
1 parent 6948e6f commit 1380df8

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 (
@@ -2762,7 +2762,7 @@ def _block_shape(values: ArrayLike, ndim: int = 1) -> ArrayLike:
27622762
return values
27632763

27642764

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

0 commit comments

Comments
 (0)