Skip to content

Commit

Permalink
Bump psutil and remove cast MyPy suddenly hates in CI but not on my m…
Browse files Browse the repository at this point in the history
…achine
  • Loading branch information
adamnovak committed Nov 6, 2024
1 parent 38ec75b commit 18c2b31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requests<=2.31.0
docker>=6.1.0, <8
urllib3>=1.26.0,<3
python-dateutil
psutil >= 3.0.1, < 7
psutil >= 6.1.0, < 7
PyPubSub >=4.0.3, <5
addict>=2.2.1, <2.5
backports.zoneinfo[tzdata];python_version<"3.9"
Expand Down
2 changes: 1 addition & 1 deletion src/toil/lib/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def cpu_count() -> int:
return cast(int, cached)

# Get the fallback answer of all the CPUs on the machine
psutil_cpu_count = cast(Optional[int], psutil.cpu_count(logical=True))
psutil_cpu_count: int | None = psutil.cpu_count(logical=True)
if psutil_cpu_count is None:
logger.debug("Could not retrieve the logical CPU count.")

Expand Down

0 comments on commit 18c2b31

Please sign in to comment.