Skip to content

Commit d1f73aa

Browse files
committed
fix mypy
1 parent 78fe635 commit d1f73aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_pydantic_spec/flask_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ def validate(
195195

196196
before(request, response, req_validation_error, None)
197197
if req_validation_error:
198-
abort(response) # type: ignore[unused-ignore]
198+
assert response is not None # response is set when req_validation_error occurs
199+
abort(response)
199200

200201
response = make_response(func(*args, **kwargs))
201202

0 commit comments

Comments
 (0)