Fix error message string interpolation

This commit is contained in:
Lucas Beyer 2021-02-20 18:18:32 +01:00 committed by GitHub
parent 7e040c0a89
commit 074abba682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2568,7 +2568,7 @@ def _broadcast_to_pairs(nvals, nd, name):
return tuple((nvals.flat[0], nvals.flat[0]) for i in range(nd))
else:
raise ValueError(f"{name} given unexpected structure: {nvals}. "
"See docstring for valid {name} formats.")
f"See docstring for valid {name} formats.")
@partial(jit, static_argnums=(1, 2, 4, 5, 6))