Skip to content

Commit

Permalink
Update return type of item op for numpy since they update it in last …
Browse files Browse the repository at this point in the history
…version.
  • Loading branch information
norhan-synnada committed Feb 21, 2025
1 parent 086e982 commit f3f385b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mithril/cores/python/numpy/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ def reshape(
return input.reshape(shape)


def item(input: np.ndarray[Any, Any]) -> int | float | bool:
def item(input: np.ndarray[Any, Any]) -> int | float | bool | str:
return input.item()

Check warning on line 1486 in mithril/cores/python/numpy/ops.py

View check run for this annotation

Codecov / codecov/patch

mithril/cores/python/numpy/ops.py#L1486

Added line #L1486 was not covered by tests


Expand Down

0 comments on commit f3f385b

Please sign in to comment.