Skip to content

Commit

Permalink
STY: manual fix for rule UP031
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 3, 2024
1 parent f682640 commit c79c6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unyt/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1985,8 +1985,8 @@ def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
mul = 1
else:
raise RuntimeError(
"Support for the %s ufunc with %i inputs has not been "
"added to unyt_array." % (str(ufunc), len(inputs))
f"Support for the {ufunc} ufunc with {len(inputs)} "
"inputs has not been added to unyt_array."
)
if unit is None:
out_arr = np.array(out_arr, copy=_COPY_IF_NEEDED)
Expand Down

0 comments on commit c79c6d4

Please sign in to comment.