diff --git a/cwltool/executors.py b/cwltool/executors.py index 0625c216f..02f5480ce 100644 --- a/cwltool/executors.py +++ b/cwltool/executors.py @@ -278,7 +278,7 @@ def __init__(self) -> None: self.pending_jobs = [] # type: List[JobsType] self.pending_jobs_lock = threading.Lock() - self.max_ram = int(psutil.virtual_memory().available / 2**20) # type: ignore[no-untyped-call] + self.max_ram = int(psutil.virtual_memory().available / 2**20) self.max_cores = float(psutil.cpu_count()) self.allocated_ram = float(0) self.allocated_cores = float(0) diff --git a/cwltool/job.py b/cwltool/job.py index 1e23d8d3e..a327773c5 100644 --- a/cwltool/job.py +++ b/cwltool/job.py @@ -909,7 +909,7 @@ def docker_monitor( cid = cidhandle.readline().strip() except (OSError): cid = None - max_mem = psutil.virtual_memory().total # type: ignore[no-untyped-call] + max_mem = psutil.virtual_memory().total tmp_dir, tmp_prefix = os.path.split(tmpdir_prefix) stats_file = tempfile.NamedTemporaryFile(prefix=tmp_prefix, dir=tmp_dir) stats_file_name = stats_file.name