Skip to content

Add missing space in unsupported-marginal error message#5630

Open
eugen-goebel wants to merge 1 commit into
plotly:mainfrom
eugen-goebel:fix-marginal-error-message-spacing
Open

Add missing space in unsupported-marginal error message#5630
eugen-goebel wants to merge 1 commit into
plotly:mainfrom
eugen-goebel:fix-marginal-error-message-spacing

Conversation

@eugen-goebel

Copy link
Copy Markdown
Contributor

Link to issue

Follow-up to #5625 (no separate issue).

Description of change

The f-string refactor merged in #5625 concatenated two adjacent string literals without a separating space, so the error message rendered as ...for \marginal_x`.Supported marginal plot types...`. This adds the missing space after the period.

Demo

Before:

Invalid value 'density' for `marginal_x`.Supported marginal plot types are: 'rug', 'box', 'violin', 'histogram'.

After:

Invalid value 'density' for `marginal_x`. Supported marginal plot types are: 'rug', 'box', 'violin', 'histogram'.

Testing strategy

Covered by the existing test_unsupported_marginal_raises_clear_error in tests/test_optional/test_px/test_marginals.py, which still passes. No changelog entry is added because this only polishes the unreleased change from #5625.

Guidelines

Follow-up to plotly#5625. The f-string refactor merged there concatenated two
adjacent string literals without a separating space, so the message
rendered as "...for `marginal_x`.Supported marginal plot types...". This
restores the space after the period.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant