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 e4d929b commit 35565a4Copy full SHA for 35565a4
1 file changed
scalene/scalene_profiler.py
@@ -176,7 +176,7 @@ class Scalene:
176
# Get the number of available CPUs (preferring `os.sched_getaffinity`, if available).
177
__availableCPUs: int
178
try:
179
- __availableCPUs = len(os.sched_getaffinity(0)) # type: ignore
+ __availableCPUs = len(os.sched_getaffinity(0)) # type: ignore[unused-ignore]
180
except AttributeError:
181
cpu_count = os.cpu_count()
182
__availableCPUs = cpu_count if cpu_count else 1
0 commit comments