Skip to content

Commit 113fa24

Browse files
committed
ruff
1 parent abb8c67 commit 113fa24

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/models-library/src/models_library/projects_nodes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from .services import ServiceKey, ServiceVersion
3636
from .utils.enums import StrAutoEnum
3737

38-
InputTypes = Union[
38+
InputTypes = Union[ # noqa: UP007
3939
# NOTE: WARNING the order in Union[*] below matters!
4040
StrictBool,
4141
StrictInt,
@@ -47,7 +47,7 @@
4747
DownloadLink,
4848
list[Any] | dict[str, Any], # arrays | object
4949
]
50-
OutputTypes = Union[
50+
OutputTypes = Union[ # noqa: UP007
5151
# NOTE: WARNING the order in Union[*] below matters!
5252
StrictBool,
5353
StrictInt,
@@ -318,7 +318,6 @@ def _convert_empty_str_to_none(cls, v):
318318
@classmethod
319319
def _convert_from_enum(cls, v):
320320
if isinstance(v, str):
321-
322321
# the old version of state was a enum of RunningState
323322
running_state_value = _convert_old_enum_name(v)
324323
return NodeState(current_status=running_state_value)

services/web/server/src/simcore_service_webserver/projects/_controller/nodes_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async def delete_node(request: web.Request) -> web.Response:
210210
request,
211211
path_params.project_id,
212212
req_ctx.user_id,
213-
NodeIDStr(path_params.node_id),
213+
f"{path_params.node_id}",
214214
req_ctx.product_name,
215215
product_api_base_url=get_api_base_url(request),
216216
)

0 commit comments

Comments
 (0)