We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebeec91 commit c7328ffCopy full SHA for c7328ff
20-concurrency/primes/procs_py37.py
@@ -14,14 +14,14 @@ def check(n: int) -> Result: # <5>
14
res = is_prime(n)
15
return Result(res, perf_counter() - t0)
16
17
-def job(n: int, results) -> None: # <6>
+def job(n: int, results: SimpleQueue) -> None: # <6>
18
results.put((n, check(n))) # <7>
19
# end::PRIMES_PROC_TOP[]
20
21
# tag::PRIMES_PROC_MAIN[]
22
def main() -> None:
23
t0 = perf_counter()
24
- results = SimpleQueue() # <1>
+ results = SimpleQueue() # type: ignore
25
workers: List[Process] = [] # <2>
26
27
for n in NUMBERS:
0 commit comments