-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve dict traceback #627
Conversation
587ea5e
to
1d57e3b
Compare
2 questions before I get around to looking at it closely:
|
wb, @hynek :)
I noticed that result == expected and expected == result were mixed in that file so I unified it to the "official" result == expected version. I can change it back though if you want.
I was not aware of this question but I will take a look at it. The changes come from requirements at work. |
thanks 😵💫
Please do; we've sufficiently departed anyways.
I'm not sure it's legit, since he edited it out, but please have a look. |
Updated the PR and answered the linked question. :-) |
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.
I didn't look super close at the code since I assume it's coming from Rich and well-tested.
I expect people to complain about the always-on Rich formatting tho, so I think it should be an option?
Port new features from Rich‘s traceback to make the structlog ones comparable again.
6e8bb30
to
889cb22
Compare
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.
thanks!
not gonna do a deep review and trust Will here :)
Summary
Restore feature parity between Rich's traceback extractor:
repr()
on strings, too.locals_max_length
config optionlocals_hide_sunder
config optionlocals_hide_dunder
config optionsuppress
config optionPull Request Check List
main
branch – use a separate branch!api.py
.docs/api.rst
by hand.versionadded
,versionchanged
, ordeprecated
directives..rst
and.md
files is written using semantic newlines.