mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
fix mypy
This commit is contained in:
@@ -15,7 +15,7 @@ repos:
|
|||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy
|
name: mypy
|
||||||
entry: mypy tinygrad/ --check-untyped-defs --explicit-package-bases --warn-unreachable # --warn-return-any
|
entry: mypy tinygrad/ extra/helpers.py --check-untyped-defs --explicit-package-bases --warn-unreachable # --warn-return-any
|
||||||
language: system
|
language: system
|
||||||
always_run: true
|
always_run: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def proc(itermaker, q):
|
|||||||
def cross_process(itermaker, maxsize=8):
|
def cross_process(itermaker, maxsize=8):
|
||||||
# TODO: use cloudpickle for itermaker
|
# TODO: use cloudpickle for itermaker
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
q = multiprocessing.Queue(maxsize)
|
q: multiprocessing.Queue = multiprocessing.Queue(maxsize)
|
||||||
p = multiprocessing.Process(target=proc, args=(itermaker, q))
|
p = multiprocessing.Process(target=proc, args=(itermaker, q))
|
||||||
p.daemon = True
|
p.daemon = True
|
||||||
p.start()
|
p.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user