t-strings (template string literals) for Content.from_markup #6352
roundedrectangle
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
textual.content.Content.from_markupseems to take a string and a variables mapping. But, t-strings in Python 3.14 seem to be a better solution for this. So, are there any plans to make passing a t-string to that class method possible, or perhaps adding a brand new class method in that class specifically for t-strings?See also page in the guide on markup variables and the documentation page for this
Beta Was this translation helpful? Give feedback.
All reactions