Skip to content

Commit

Permalink
Merge pull request #866 from grigoriev-semyon/fix-aiohttp-exception-m…
Browse files Browse the repository at this point in the history
…ap-type-hit

Fix Aiohttp ``exception_map`` type hint
  • Loading branch information
sirosen committed Aug 2, 2023
2 parents 10fa754 + 3f408ed commit 2c6ed32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webargs/aiohttpparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class HTTPUnprocessableEntity(web.HTTPClientError):

# Mapping of status codes to exception classes
# Adapted from werkzeug
exception_map = {422: HTTPUnprocessableEntity}
exception_map: dict[int, type[web_exceptions.HTTPException]] = {}
exception_map[422] = HTTPUnprocessableEntity


def _find_exceptions() -> None:
Expand Down

0 comments on commit 2c6ed32

Please sign in to comment.