-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Added support for Rich Repr protocol #3099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
please review Not sure if this change warrants any update to the docs. If anything, maybe a sentence or two max, but where? |
|
Thanks so much. When life is less manic I'll review and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could probably add a note under Usage with devtools (e.g. Usage with rich) with just a screenshot and a link to rich. WDYT?
|
Please update |
Adds code to markdown Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
|
@PrettyWood Added a Usage with rich page as suggested. Here's what it looks like: |
|
Looks great! Thank you 🙏 (big fan of your work btw) |
|
Love rich and pydantic, hope this gets merged! |
|
Great work. Hopefully we'll see this in the next pydantic release? |
|
Thanks so much @willmcgugan, much appreciated. Sorry this has taken so long to get to. |
|
Thanks @samuelcolvin ! |

Change Summary
Adds support for the Rich Repr Protocol so that Rich can pretty print PyDantic objects.
Note that Rich does not need to be added a dependency. If PyDantic objects are printed with Rich you will get the formatting above, otherwise there are no changes.
Related issue number
Checklist
changes/<pull request or issue id>-<github username>.mdfile added describing change(see changes/README.md for details)