8000 Merge branch 'einsum-dispatch' of github.com:shoyer/numpy into einsum… · shoyer/numpy@ea7ff5f · GitHub
[go: up one dir, main page]

Skip to content

Commit ea7ff5f

Browse files
committed
Merge branch 'einsum-dispatch' of github.com:shoyer/numpy into einsum-dispatch
2 parents 4701c31 + 024c728 commit ea7ff5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numpy/core/shape_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,9 @@ def _block(arrays, max_depth, result_ndim, depth=0):
500500

501501

502502
def _block_dispatcher(arrays):
503+
# Use type(...) is list to match the behavior of np.block(), which special
504+
# cases list specifically rather than allowing for generic iterables or
505+
# tuple. Also, we know that list.__array_function__ will never exist.
503506
if type(arrays) is list:
504507
for subarrays in arrays:
505508
for subarray in _block_dispatcher(subarrays):

0 commit comments

Comments
 (0)
0