Skip to content

Commit 395c33f

Browse files
authored
add comment
1 parent b03661b commit 395c33f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/array_api_extra/_lib/_funcs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def atleast_nd(x: Array, /, *, ndim: int, xp: ModuleType | None = None) -> Array
7272
return x
7373

7474

75+
# `float` in signature to accept `math.nan` for Dask.
76+
# `int`s are still accepted as `float` is a superclass of `int` in typing
7577
def broadcast_shapes(*shapes: tuple[float | None, ...]) -> tuple[int | None, ...]:
7678
"""
7779
Compute the shape of the broadcasted arrays.

0 commit comments

Comments
 (0)