From d116dcb37126953e0628d728b10ef4dc55390ebc Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 31 Jan 2024 14:03:00 +0100 Subject: [PATCH] mypy fixes --- cwltool/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cwltool/docker.py b/cwltool/docker.py index 44c681202f..a1b9c8a371 100644 --- a/cwltool/docker.py +++ b/cwltool/docker.py @@ -431,7 +431,8 @@ def create_runtime( ) shm_size_od, shm_bool = self.builder.get_requirement("http://commonwl.org/cwltool#ShmSize") if shm_bool: - runtime.append(f"--shm-size={shm_size_od['shmSize']}") + shm_size = cast(CWLObjectType, shm_size_od)["shmSize"] + runtime.append(f"--shm-size={shm_size}") return runtime, cidfile_path