File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 99from types import ModuleType
1010from typing import TYPE_CHECKING , Any , cast , overload
1111
12+ from ._funcs import broadcast_shapes
1213from ._utils import _compat
1314from ._utils ._compat import (
1415 array_namespace ,
@@ -207,9 +208,7 @@ def lazy_apply( # type: ignore[valid-type] # numpydoc ignore=GL07,SA04
207208 multi_output = False
208209
209210 if shape is None :
210- # FIXME https://github.com/data-apis/array-api-extra/pull/133
211- # shapes = [broadcast_shapes(*(arg.shape for arg in args))]
212- shapes = [xp .broadcast_arrays (* args )[0 ].shape ]
211+ shapes = [broadcast_shapes (* (arg .shape for arg in args ))]
213212 elif all (isinstance (s , int | None ) for s in shape ):
214213 # Do not test for shape to be a tuple
215214 # https://github.com/data-apis/array-api/issues/891#issuecomment-2637430522
You can’t perform that action at this time.
0 commit comments