From c79c6d418968e8e996ccde181945de7ed6dbcd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Tue, 3 Dec 2024 09:58:33 +0100 Subject: [PATCH] STY: manual fix for rule UP031 --- unyt/array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unyt/array.py b/unyt/array.py index 330f51c4..b3982dbf 100644 --- a/unyt/array.py +++ b/unyt/array.py @@ -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)