We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b75363 commit f854e35Copy full SHA for f854e35
1 file changed
mypy/util.py
@@ -994,7 +994,7 @@ def get_available_threads() -> int:
994
# A conservative fallback in case we cannot determine CPU count in any way.
995
cpu_count = 4
996
997
- affinity = None
+ affinity: set[int] | list[int] | None = None
998
# Not available on old Python versions on some platforms.
999
if sys.platform == "linux":
1000
affinity = os.sched_getaffinity(0)
0 commit comments