Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mypy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ def get_available_threads() -> int:
# Not available on old Python versions on some platforms.
if sys.platform == "linux":
affinity = os.sched_getaffinity(0)
if PSUTIL_AVAILABLE and sys.platform != "darwin":
# Currently not supported on macOS.
if PSUTIL_AVAILABLE and (psutil.LINUX or psutil.WINDOWS or psutil.FREEBSD):
# Currently not supported on macOS and NetBSD.
affinity = psutil.Process().cpu_affinity()

assert cpu_count is not None
Expand Down
Loading