We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1275fee commit 3d39354Copy full SHA for 3d39354
pandas/core/internals/blocks.py
@@ -10,7 +10,7 @@
10
from pandas._libs.internals import BlockPlacement
11
from pandas._libs.tslibs import conversion
12
from pandas._libs.tslibs.timezones import tz_compare
13
-from pandas._typing import ArrayLike, Scalar
+from pandas._typing import ArrayLike, Scalar, Shape
14
from pandas.util._validators import validate_bool_kwarg
15
16
from pandas.core.dtypes.cast import (
@@ -2760,7 +2760,7 @@ def _block_shape(values: ArrayLike, ndim: int = 1) -> ArrayLike:
2760
return values
2761
2762
2763
-def safe_reshape(arr, new_shape):
+def safe_reshape(arr, new_shape: Shape):
2764
"""
2765
If possible, reshape `arr` to have shape `new_shape`,
2766
with a couple of exceptions (see gh-13012):
0 commit comments