Skip to content

Commit 8763bed

Browse files
committed
remove some psutil type ignores
Thanks to python/typeshed@d7a5a14
1 parent f9dc9af commit 8763bed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/executors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def __init__(self) -> None:
278278
self.pending_jobs = [] # type: List[JobsType]
279279
self.pending_jobs_lock = threading.Lock()
280280

281-
self.max_ram = int(psutil.virtual_memory().available / 2**20) # type: ignore[no-untyped-call]
281+
self.max_ram = int(psutil.virtual_memory().available / 2**20)
282282
self.max_cores = float(psutil.cpu_count())
283283
self.allocated_ram = float(0)
284284
self.allocated_cores = float(0)

cwltool/job.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def docker_monitor(
909909
cid = cidhandle.readline().strip()
910910
except (OSError):
911911
cid = None
912-
max_mem = psutil.virtual_memory().total # type: ignore[no-untyped-call]
912+
max_mem = psutil.virtual_memory().total
913913
tmp_dir, tmp_prefix = os.path.split(tmpdir_prefix)
914914
stats_file = tempfile.NamedTemporaryFile(prefix=tmp_prefix, dir=tmp_dir)
915915
stats_file_name = stats_file.name

0 commit comments

Comments
 (0)