Skip to content

Commit 7a40c71

Browse files
author
Andrei Neagu
committed
mypy
1 parent 61cc89c commit 7a40c71

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/application.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ def create_app():
188188
setup_prometheus_metrics(app)
189189

190190
# ERROR HANDLERS ------------
191-
app.add_exception_handler(NodeNotFound, node_not_found_error_handler)
192-
app.add_exception_handler(BaseDynamicSidecarError, http_error_handler)
191+
app.add_exception_handler(
192+
NodeNotFound, node_not_found_error_handler # type: ignore[arg-type]
193+
)
194+
app.add_exception_handler(BaseDynamicSidecarError, http_error_handler) # type: ignore[arg-type]
193195

194196
# EVENTS ---------------------
195197

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, message: str, status_code: int) -> None:
3636

3737

3838
class BaseError(OsparcErrorMixin, BaseDynamicSidecarError):
39-
code = "dy_sidecar.error"
39+
code = "dy_sidecar.error" # type: ignore[assignment]
4040

4141

4242
class ContainerExecContainerNotFoundError(BaseError):

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/outputs/_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def _cancel_task(task: Task, task_cancellation_timeout_s: PositiveFloat) -
3232

3333

3434
class UploadPortsFailedError(OsparcErrorMixin, RuntimeError):
35-
code: str = "dynamic_sidecar.outputs_manager.failed_while_uploading"
35+
code: str = "dynamic_sidecar.outputs_manager.failed_while_uploading" # type: ignore[assignment]
3636
msg_template: str = "Failed while uploading: failures={failures}"
3737

3838

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/user_services_preferences/_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class BaseServicesPreferencesError(OsparcErrorMixin, Exception):
5-
code = "dynamic_sidecar.user_service_preferences"
5+
code = "dynamic_sidecar.user_service_preferences" # type: ignore[assignment]
66

77

88
class DestinationIsNotADirectoryError(BaseServicesPreferencesError):

0 commit comments

Comments
 (0)