mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
fix mypy
This commit is contained in:
@@ -15,7 +15,7 @@ repos:
|
||||
pass_filenames: false
|
||||
- id: 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
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
|
||||
@@ -30,7 +30,7 @@ def proc(itermaker, q):
|
||||
def cross_process(itermaker, maxsize=8):
|
||||
# TODO: use cloudpickle for itermaker
|
||||
import multiprocessing
|
||||
q = multiprocessing.Queue(maxsize)
|
||||
q: multiprocessing.Queue = multiprocessing.Queue(maxsize)
|
||||
p = multiprocessing.Process(target=proc, args=(itermaker, q))
|
||||
p.daemon = True
|
||||
p.start()
|
||||
|
||||
Reference in New Issue
Block a user