fmartingr
/
jeeves
Archived
1
0
Fork 0

Using pydantic.DirectoryPath for Workspace.path

This commit is contained in:
Felipe Martin 2020-04-30 18:26:48 +02:00
parent 504e8c9d17
commit d28acdc8b4
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ExecutionStep(BaseObject):
class Workspace(BaseObject):
path: Path = None # type: ignore
path: pydantic.DirectoryPath = None # type: ignore
@pydantic.validator("path", pre=True, always=True)
def path_default(cls, v): # pylint: disable=no-self-argument