Skip to content

Commit c7328ff

Browse files
committed
Python 3.7 example without some types
1 parent ebeec91 commit c7328ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

20-concurrency/primes/procs_py37.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ def check(n: int) -> Result: # <5>
1414
res = is_prime(n)
1515
return Result(res, perf_counter() - t0)
1616

17-
def job(n: int, results) -> None: # <6>
17+
def job(n: int, results: SimpleQueue) -> None: # <6>
1818
results.put((n, check(n))) # <7>
1919
# end::PRIMES_PROC_TOP[]
2020

2121
# tag::PRIMES_PROC_MAIN[]
2222
def main() -> None:
2323
t0 = perf_counter()
24-
results = SimpleQueue() # <1>
24+
results = SimpleQueue() # type: ignore
2525
workers: List[Process] = [] # <2>
2626

2727
for n in NUMBERS:

0 commit comments

Comments
 (0)