Skip to content

Commit f854e35

Browse files
authored
Fix self check on macOS (#21214)
There was an unreachable statement error specific to macOS.
1 parent 3b75363 commit f854e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def get_available_threads() -> int:
994994
# A conservative fallback in case we cannot determine CPU count in any way.
995995
cpu_count = 4
996996

997-
affinity = None
997+
affinity: set[int] | list[int] | None = None
998998
# Not available on old Python versions on some platforms.
999999
if sys.platform == "linux":
10001000
affinity = os.sched_getaffinity(0)

0 commit comments

Comments
 (0)