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.

Changes between revision 1 and 2

orig
1
2
3

Commits

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.
1d5ace0325a640e5506e054ac1b883ae77262f00 Christian Hammond
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...