Skip to content

Commit 6c254b0

Browse files
committed
mypy fixes
1 parent cea89da commit 6c254b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/docker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ def create_runtime(
431431
)
432432
shm_size_od, shm_bool = self.builder.get_requirement("http://commonwl.org/cwltool#ShmSize")
433433
if shm_bool:
434-
runtime.append(f"--shm-size={shm_size_od['shmSize']}")
434+
shm_size = cast(CWLObjectType, shm_size_od)["shmSize"]
435+
runtime.append(f"--shm-size={shm_size}")
435436
return runtime, cidfile_path
436437

437438

0 commit comments

Comments
 (0)