• 
      

    Require some arguments to be keyword-only in WebAPIError.

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

    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.

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