Skip to content

Commit d2b84e2

Browse files
committed
remove unnecessary typing
1 parent a0c98d0 commit d2b84e2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/array_api_extra/_delegation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from collections.abc import Sequence
44
from types import ModuleType
5-
from typing import Literal, cast
5+
from typing import Literal
66

77
from ._lib import _funcs
88
from ._lib._utils._compat import (
@@ -137,8 +137,7 @@ def broadcast_shapes(
137137
or is_torch_namespace(xp)
138138
)
139139
):
140-
int_shapes = cast(tuple[tuple[int, ...], ...], shapes)
141-
return cast(tuple[int | None, ...], xp.broadcast_shapes(*int_shapes))
140+
return xp.broadcast_shapes(*shapes)
142141

143142
return _funcs.broadcast_shapes(*shapes)
144143

0 commit comments

Comments
 (0)