Skip to content

Wrap plain strings in Text in Section.add_field() - #129

Open
vonZeppelin wants to merge 1 commit into
imryche:masterfrom
vonZeppelin:master
Open

vonZeppelin wants to merge 1 commit into
imryche:masterfrom
vonZeppelin:master

Conversation

@vonZeppelin

Copy link
Copy Markdown
Contributor

The Section.add_field() signature indicates it accepts both plain strings and Text objects; however, plain strings are currently rejected by the validator at runtime. This PR ensures plain strings are wrapped in a Text object.

Also ruff linter warnings fixed.

This branch has not been deployed

No deployments
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