Skip to content

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

Open
vonZeppelin wants to merge 1 commit intoimryche:masterfrom
vonZeppelin:master
Open

Wrap plain strings in Text in Section.add_field()#129
vonZeppelin wants to merge 1 commit intoimryche: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.

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