-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] Dataclass attributes specified with init=False
cause error in pretty printing
#3417
Closed
2 tasks done
Labels
Comments
CollinHeist
added a commit
to CollinHeist/rich
that referenced
this issue
Jul 6, 2024
9 tasks
CollinHeist
changed the title
[BUG] Dataclass attributes specified with
[BUG] Dataclass attributes specified with Jul 6, 2024
init=False
cause error in traceback printinginit=False
cause error in pretty printing
I hope we solved your problem. If you like using Rich, you might also enjoy Textual |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Objects in pretty traceback printing which are
dataclass
objects with fields that are specified withinit=False
will cause an uncaught exception in the printing. See below.This is specifically caused by this line of code.
PR Submitted
The text was updated successfully, but these errors were encountered: