Skip to content

Commit

Permalink
Fix typing of handle_error
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Jan 7, 2024
1 parent 6777028 commit a1c4ea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webargs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,8 @@ def handle_error(
req: Request,
schema: ma.Schema,
*,
error_status_code: int,
error_headers: typing.Mapping[str, str],
error_status_code: int | None,
error_headers: typing.Mapping[str, str] | None,
) -> typing.NoReturn:
"""Called if an error occurs while parsing args. By default, just logs and
raises ``error``.
Expand Down

0 comments on commit a1c4ea7

Please sign in to comment.