Skip to content

Commit

Permalink
MAINT: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley authored Sep 28, 2024
1 parent 232860f commit fa397d2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/array_api_extra/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ def expand_dims(
)
raise IndexError(err_msg)
axis = tuple(dim % ndim for dim in axis)
if len(set(axis)) != len(axis):
err_msg = "Duplicate dimensions specified in `axis`."
raise ValueError(err_msg)
if len(set(axis)) != len(axis):
err_msg = "Duplicate dimensions specified in `axis`."
raise ValueError(err_msg)
Expand Down

0 comments on commit fa397d2

Please sign in to comment.