Skip to content

Commit 4c43c02

Browse files
committed
freshen cwltool/pathmapper.py
1 parent 998b1e5 commit 4c43c02

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cwltool/pathmapper.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import urllib
66
import uuid
77
from typing import (
8-
Any,
98
Callable,
109
Dict,
1110
Iterator,
@@ -28,7 +27,7 @@
2827
from .stdfsaccess import abspath
2928
from .utils import (
3029
CWLObjectType,
31-
Directory,
30+
DirectoryType,
3231
adjustDirObjs,
3332
adjustFileObjs,
3433
convert_pathsep_to_unix,
@@ -183,7 +182,7 @@ def visit(
183182
staged=staged,
184183
)
185184

186-
def setup(self, referenced_files: List[Any], basedir: str) -> None:
185+
def setup(self, referenced_files: List[CWLObjectType], basedir: str) -> None:
187186

188187
# Go through each file and set the target to its own directory along
189188
# with any secondary files.
@@ -192,7 +191,11 @@ def setup(self, referenced_files: List[Any], basedir: str) -> None:
192191
if self.separateDirs:
193192
stagedir = os.path.join(self.stagedir, "stg%s" % uuid.uuid4())
194193
self.visit(
195-
fob, stagedir, basedir, copy=fob.get("writable", False), staged=True
194+
fob,
195+
stagedir,
196+
basedir,
197+
copy=cast(bool, fob.get("writable", False)),
198+
staged=True,
196199
)
197200

198201
def mapper(self, src: str) -> MapperEnt:

0 commit comments

Comments
 (0)