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

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

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.

Summary ID
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.
fbf71485cfe44eee9a55863fa38719b2d2eaccdd
chipx86
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.x (a765c20)