File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change
1
+ RELEASE_TYPE: patch
2
+
3
+ This patch corrects the f-string formatting of a few array-related error messages.
Original file line number Diff line number Diff line change @@ -328,15 +328,15 @@ def _hypothesis_parse_gufunc_signature(signature):
328
328
raise InvalidArgument (
329
329
f"Got dimension { name !r} , but handling of frozen optional dimensions "
330
330
"is ambiguous. If you known how this should work, please "
331
- "contact us to get this fixed and documented ({signature=})."
331
+ f "contact us to get this fixed and documented ({ signature = } )."
332
332
)
333
333
except ValueError :
334
334
names_in = {n .strip ("?" ) for shp in input_shapes for n in shp }
335
335
names_out = {n .strip ("?" ) for n in result_shape }
336
336
if name .strip ("?" ) in (names_out - names_in ):
337
337
raise InvalidArgument (
338
- "The {name!r} dimension only appears in the output shape, and is "
339
- "not frozen, so the size is not determined ({signature=})."
338
+ f "The { name !r} dimension only appears in the output shape, and is "
339
+ f "not frozen, so the size is not determined ({ signature = } )."
340
340
) from None
341
341
return _GUfuncSig (input_shapes = input_shapes , result_shape = result_shape )
342
342
You can’t perform that action at this time.
0 commit comments