diff options
Diffstat (limited to 'numpy/core/shape_base.py')
-rw-r--r-- | numpy/core/shape_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 23e2ef57f..b7fe71310 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -419,7 +419,7 @@ def _block_check_depths_match(arrays, parent_index=[]): return first_index, max(arr_ndims) elif type(arrays) is list and len(arrays) == 0: # We've 'bottomed out' on an empty list - return parent_index + [None], _nx.ndim(arrays) + return parent_index + [None], 0 else: # We've 'bottomed out' - arrays is either a scalar or an array return parent_index, _nx.ndim(arrays) |