Using pydantic.DirectoryPath for Workspace.path
This commit is contained in:
parent
504e8c9d17
commit
d28acdc8b4
|
@ -41,7 +41,7 @@ class ExecutionStep(BaseObject):
|
||||||
|
|
||||||
|
|
||||||
class Workspace(BaseObject):
|
class Workspace(BaseObject):
|
||||||
path: Path = None # type: ignore
|
path: pydantic.DirectoryPath = None # type: ignore
|
||||||
|
|
||||||
@pydantic.validator("path", pre=True, always=True)
|
@pydantic.validator("path", pre=True, always=True)
|
||||||
def path_default(cls, v): # pylint: disable=no-self-argument
|
def path_default(cls, v): # pylint: disable=no-self-argument
|
||||||
|
|
Reference in New Issue