Require some arguments to be keyword-only in WebAPIError.

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

Information

Djblets
release-4.x

Reviewers

This updates WebAPIError.__init__ and WebAPIError.with_overrides
to mark the current keyword argument as keyword-only, in preparation for
new arguments.

Passing as positional arguments is now deprecated, and will emit a
deprecation warning.

Unit tests pass in Djblets and Review Board.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Require some arguments to be keyword-only in WebAPIError.
This updates `WebAPIError.__init__` and `WebAPIError.with_overrides` to mark the current keyword argument as keyword-only, in preparation for new arguments. Passing as positional arguments is now deprecated, and will emit a deprecation warning.
4ded889bf1762235e5297ae3c73629af44ff776e Christian Hammond
djblets/webapi/errors.py
Loading...