Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Mar 28, 2022
1 parent 4c44d11 commit b9cebed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask/wrappers.py
Expand Up @@ -123,7 +123,7 @@ def _load_form_data(self) -> None:

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:
Expand Down

0 comments on commit b9cebed

Please sign in to comment.