@@ -28,23 +28,34 @@ class RemoteStashFolderData(RemoteStashData):
2828 _storable = True
2929
3030 class Model (RemoteStashData .Model ):
31- target_basepath : str = MetadataField (description = 'The the target basepath' )
32- source_list : List [str ] = MetadataField (description = 'The list of source files that were stashed' )
33-
34- def __init__ (self , stash_mode : StashMode , target_basepath : str , source_list : List , ** kwargs ):
31+ target_basepath : str = MetadataField (
32+ description = 'The target basepath' ,
33+ )
34+ source_list : List [str ] = MetadataField (
35+ description = 'The list of source files that were stashed' ,
36+ )
37+
38+ def __init__ (
39+ self ,
40+ stash_mode : StashMode ,
41+ target_basepath : str ,
42+ source_list : List ,
43+ ** kwargs ,
44+ ):
3545 """Construct a new instance
3646
3747 :param stash_mode: the stashing mode with which the data was stashed on the remote.
3848 :param target_basepath: the target basepath.
3949 :param source_list: the list of source files.
4050 """
51+ if stash_mode != StashMode .COPY :
52+ raise ValueError ('`RemoteStashFolderData` can only be used with `stash_mode == StashMode.COPY`.' )
53+
4154 super ().__init__ (stash_mode , ** kwargs )
55+
4256 self .target_basepath = target_basepath
4357 self .source_list = source_list
4458
45- if stash_mode != StashMode .COPY :
46- raise ValueError ('`RemoteStashFolderData` can only be used with `stash_mode == StashMode.COPY`.' )
47-
4859 @property
4960 def target_basepath (self ) -> str :
5061 """Return the target basepath.
0 commit comments