fix typing

This commit is contained in:
David Lord 2022-03-28 11:39:24 -07:00
parent 41aaaf7fa0
commit cd4ab005a9
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -123,7 +123,7 @@ class Request(RequestBase):
attach_enctype_error_multidict(self)
def on_json_loading_failed(self, e: ValueError) -> t.Any:
def on_json_loading_failed(self, e: t.Optional[ValueError]) -> t.Any:
try:
return super().on_json_loading_failed(e)
except BadRequest as e: