|
12 | 12 | from uuid import UUID |
13 | 13 |
|
14 | 14 | from aiopg.sa.result import RowProxy |
15 | | -from pydantic import NonNegativeInt, PositiveInt, validate_arguments |
| 15 | +from pydantic import NonNegativeInt, PositiveInt, validate_call |
16 | 16 |
|
17 | 17 | from .db import VersionControlRepository |
18 | 18 | from .errors import CleanRequiredError |
@@ -146,10 +146,10 @@ async def get_workbench( |
146 | 146 | _CONFIG = {"arbitrary_types_allowed": True} |
147 | 147 |
|
148 | 148 |
|
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