Skip to content

Commit c431790

Browse files
committed
Format changes after upgrading black
1 parent 4c94350 commit c431790

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

ml_rest_fastapi/routes/model.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def dict_value_types(arg: Dict) -> Dict:
4949
status.HTTP_200_OK: make_openapi_response(
5050
model_type=Dict, example={"prediction": "example"}
5151
),
52-
status.HTTP_500_INTERNAL_SERVER_ERROR: make_openapi_response(
53-
mime_type="text/plain", example=EXAMPLE_TRACEBACK
54-
)
55-
if get_value("DEBUG")
56-
else make_openapi_response(
57-
model_type=Message, example=Message("Internal Server Error").to_json()
52+
status.HTTP_500_INTERNAL_SERVER_ERROR: (
53+
make_openapi_response(mime_type="text/plain", example=EXAMPLE_TRACEBACK)
54+
if get_value("DEBUG")
55+
else make_openapi_response(
56+
model_type=Message, example=Message("Internal Server Error").to_json()
57+
)
5858
),
5959
status.HTTP_503_SERVICE_UNAVAILABLE: make_openapi_response(
6060
model_type=Message, example=Message("Not Ready").to_json()

ml_rest_fastapi/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Settings file."""
2+
23
import os
34
from typing import Any, Dict
45

ml_rest_fastapi/trained_model/wrapper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module implements the TrainedModelWrapper class."""
2+
23
import os
34
import os.path
45
import importlib

0 commit comments

Comments
 (0)