Skip to content

Commit 1737e63

Browse files
author
Andrei Neagu
committed
mypy
1 parent 56ca7db commit 1737e63

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

services/agent/src/simcore_service_agent/api/rest/routes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ def setup_rest_api(app: FastAPI):
1111
app.include_router(_health.router)
1212

1313
app.add_exception_handler(Exception, handle_errors_as_500)
14-
app.add_exception_handler(
15-
HTTPException, http_exception_as_json_response # type: ignore[arg-type]
16-
)
14+
app.add_exception_handler(HTTPException, http_exception_as_json_response)

services/agent/src/simcore_service_agent/models/volumes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from pathlib import Path
22
from typing import Final
33

4-
from common_library.pydantic_validators import convert_str_to_run_id_object
54
from models_library.api_schemas_directorv2.services import (
65
CHARS_IN_VOLUME_NAME_BEFORE_DIR_NAME,
76
)
@@ -24,8 +23,6 @@ class DynamicServiceVolumeLabels(BaseModel):
2423
def directory_name(self) -> str:
2524
return self.source[CHARS_IN_VOLUME_NAME_BEFORE_DIR_NAME:][::-1].strip("_")
2625

27-
_convert_str_to_run_id_object = convert_str_to_run_id_object("run_id")
28-
2926
model_config = ConfigDict(
3027
arbitrary_types_allowed=True,
3128
)

0 commit comments

Comments
 (0)