Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 73f0086

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

1 file changed

+2-3Lines changed: 2 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎plotly/express/_core.py‎

Copy file name to clipboardExpand all lines: plotly/express/_core.py
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.