Skip to content

Commit 17fe078

Browse files
committed
MyPy Fix in request.py
1 parent 9872f30 commit 17fe078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_openapi3/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _do_request(
137137
# Create a JSON response with validation error details
138138
response = make_response(e.json())
139139
response.headers["Content-Type"] = "application/json"
140-
response.status_code = DEFAULT_VALIDATION_ERROR_STATUS
140+
response.status_code = int(DEFAULT_VALIDATION_ERROR_STATUS)
141141
return response
142142

143143
return func_kwargs

0 commit comments

Comments
 (0)