Add the ability to add debugging notes to the result.safe decorator.#2110
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.