Skip to content

Commit 73f0086

Browse files
authored
use f-strings for string formatting
1 parent 0c27cf1 commit 73f0086

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plotly/express/_core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,9 +973,8 @@ def make_trace_spec(args, constructor, attrs, trace_patch):
973973
)
974974
else:
975975
raise ValueError(
976-
"Invalid value '%s' for `marginal_%s`. Supported marginal "
977-
"plot types are: 'rug', 'box', 'violin', 'histogram'."
978-
% (args["marginal_" + letter], letter)
976+
f"Invalid value '{args['marginal_' + letter]}' for `marginal_{letter}`."
977+
"Supported marginal plot types are: 'rug', 'box', 'violin', 'histogram'."
979978
)
980979
if "color" in attrs or "color" not in args:
981980
if "marker" not in trace_spec.trace_patch:

0 commit comments

Comments
 (0)