Generate representation string with rich #2597
Unanswered
eendebakpt
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I am also trying to achieve this. The |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Using rich I can print nice representations, but how can I generate a string with the equivalent representation?
An example
I would like the output of
t
to be formatted in the style of rich. I can usepretty.install()
, but that applies to all objects, not just by dataclassTest
.Can I do something like
with rich?
Beta Was this translation helpful? Give feedback.
All reactions