Skip to content

Commit 1d0e14d

Browse files
fix validate_call
1 parent 5a6a7d1 commit 1d0e14d

File tree

1 file changed

+8
-8
lines changed
  • services/web/server/src/simcore_service_webserver/version_control

1 file changed

+8
-8
lines changed

services/web/server/src/simcore_service_webserver/version_control/_core.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from uuid import UUID
1313

1414
from aiopg.sa.result import RowProxy
15-
from pydantic import NonNegativeInt, PositiveInt, validate_arguments
15+
from pydantic import NonNegativeInt, PositiveInt, validate_call
1616

1717
from .db import VersionControlRepository
1818
from .errors import CleanRequiredError
@@ -146,10 +146,10 @@ async def get_workbench(
146146
_CONFIG = {"arbitrary_types_allowed": True}
147147

148148

149-
list_repos_safe = validate_arguments(list_repos, config=_CONFIG) # type: ignore
150-
list_checkpoints_safe = validate_arguments(list_checkpoints, config=_CONFIG) # type: ignore
151-
create_checkpoint_safe = validate_arguments(create_checkpoint, config=_CONFIG) # type: ignore
152-
get_checkpoint_safe = validate_arguments(get_checkpoint, config=_CONFIG) # type: ignore
153-
update_checkpoint_safe = validate_arguments(update_checkpoint, config=_CONFIG) # type: ignore
154-
checkout_checkpoint_safe = validate_arguments(checkout_checkpoint, config=_CONFIG) # type: ignore
155-
get_workbench_safe = validate_arguments(get_workbench, config=_CONFIG) # type: ignore
149+
list_repos_safe = validate_call(list_repos, config=_CONFIG) # type: ignore
150+
list_checkpoints_safe = validate_call(list_checkpoints, config=_CONFIG) # type: ignore
151+
create_checkpoint_safe = validate_call(create_checkpoint, config=_CONFIG) # type: ignore
152+
get_checkpoint_safe = validate_call(get_checkpoint, config=_CONFIG) # type: ignore
153+
update_checkpoint_safe = validate_call(update_checkpoint, config=_CONFIG) # type: ignore
154+
checkout_checkpoint_safe = validate_call(checkout_checkpoint, config=_CONFIG) # type: ignore
155+
get_workbench_safe = validate_call(get_workbench, config=_CONFIG) # type: ignore

0 commit comments

Comments
 (0)