Added type hints and modernize docs for djblets.webapi.errors.

Review Request #13258 — Created Sept. 5, 2023 and submitted — Latest diff uploaded

Information

Djblets
release-4.x

Reviewers

This updates djblets.webapi.errors to include type hints and modern
documentation. This class is ancient, and was not up to our current
standards.

This is in preparation for upcoming work on error support.

There is one small feature addition in that with_override() and
with_message() will now do the right thing if called on a WebAPIError
subclass. While not a pattern we currently explicitly support, this is
more correct and helps future-proof the class.

Unit tests pass.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Added type hints and modernize docs for djblets.webapi.errors.
This updates `djblets.webapi.errors` to include type hints and modern documentation. This class is ancient, and was not up to our current standards. This is in preparation for upcoming work on error support.
a38e5e421e0f3bbc3d672e23a9f996919b978574 Christian Hammond
djblets/webapi/errors.py
Loading...