Skip to content

Commit

Permalink
remove some psutil type ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Aug 15, 2022
1 parent f9dc9af commit 8763bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cwltool/executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cwltool/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8763bed

Please sign in to comment.