Skip to content

Commit

Permalink
Update exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Jul 22, 2024
1 parent 72be5ad commit 070837d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Changelog

**New features**

- ``result_type`` now raises a ``PromotionError`` if the input types are not compatible.

- :func:`~ndonnx.result_type` now raises a :class:`~ndonnx.PromotionError` if the input types are not compatible.

0.6.1 (2024-07-12)
------------------
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def result_type(
np_dtypes.append(dtype.values.to_numpy_dtype())
else:
raise PromotionError(
"result_type is not defined for arbitrary Struct types. You likely need to explicitly cast to the desired dtype."
"'result_type' is not defined for arbitrary struct types. You likely need to cast to the desired dtype explicitly."
)
else:
np_dtypes.append(dtype.to_numpy_dtype())
Expand Down

0 comments on commit 070837d

Please sign in to comment.