Skip to content

Commit 35565a4

Browse files
committed
Added ignore for MyPy.
1 parent e4d929b commit 35565a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scalene/scalene_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Scalene:
176176
# Get the number of available CPUs (preferring `os.sched_getaffinity`, if available).
177177
__availableCPUs: int
178178
try:
179-
__availableCPUs = len(os.sched_getaffinity(0)) # type: ignore
179+
__availableCPUs = len(os.sched_getaffinity(0)) # type: ignore[unused-ignore]
180180
except AttributeError:
181181
cpu_count = os.cpu_count()
182182
__availableCPUs = cpu_count if cpu_count else 1

0 commit comments

Comments
 (0)