flake8
passed.
JSHint
passed.
Review Request #13258 — Created Sept. 5, 2023 and submitted
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 aWebAPIError
subclass. While not a pattern we currently explicitly support, this is
more correct and helps future-proof the class.
Unit tests pass.
Summary | ID |
---|---|
fbf71485cfe44eee9a55863fa38719b2d2eaccdd |
Updated to allow the HTTP headers to be a callable.
Summary | ID | |
---|---|---|
1d5ace0325a640e5506e054ac1b883ae77262f00 | ||
a38e5e421e0f3bbc3d672e23a9f996919b978574 |
Revision 2 (+314 -36)
Fixed bad import ordering.
Summary | ID | |
---|---|---|
a38e5e421e0f3bbc3d672e23a9f996919b978574 | ||
fbf71485cfe44eee9a55863fa38719b2d2eaccdd |
Revision 3 (+312 -36)