Uh oh!
There was an error while loading. Please reload this page.
Add the ability to add debugging notes to the result.safe decorator. - #2110
Add the ability to add debugging notes to the result.safe decorator.#2110madkopp wants to merge 10 commits into
Conversation
sobolevn
left a comment
There was a problem hiding this comment.
Generally looks good, but there are several things to add:
impure_safeandfuture_safeshould be updated as well- Please, add a
typesafetytest for this - Test an empty string
Thank you!
madkopp
commented
Apr 12, 2025
Thanks for the comments! I've updated the pull request to reflect the changes. Let me know if anything needs tweaking. |
sobolevn
left a comment
There was a problem hiding this comment.
Thanks! Just two minor comments :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
madkopp
commented
Apr 12, 2025
Ok pushed changes. Let me know if that addresses things. |
madkopp
commented
Apr 15, 2025
FYI, I was looking at the code for the Result container and noticed that there's a |
sobolevn
commented
Apr 15, 2025
Yes, tracing is implemented. |
Add the ability to add debugging notes to the result.safe decorator.
Checklist
CHANGELOG.mdRelated issues
-Refs #2107, but may not fully close it. The need to provide a list of Exceptions in order to use the
add_note_on_failurekeyword is a little clunky.number
Would appreciate any help with the overloading of the
safedecorator to alleviate the need to provide a list of Exceptions.I wasn't exactly sure how you wanted me to add the changes to the change log, so I just made a "Features" section at the top of the list that isn't attached to any version. (I wasn't sure if you wanted me to go creating version numbers on your behalf or not).
Thanks for the great package!
🙏 Please, if you or your company finds
dry-pythonvaluable, help us sustain the project by sponsoring it transparently on https://github.com/sponsors/dry-python. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.