[TYPED=1] cvar should allow dtype as a tuple (#11770)

* cvar dtype:DType|tuple[DType, ...]|None=None

* fmt

* add a test

* list typeguard as a dep for CI

* extra step to install mypy

* fix venv

* ci fixes

* mv typeguard to testing install group

* simpler TYPED=1 test

* add typeguard to lint group
This commit is contained in:
Jordan Chalupka
2025-08-26 12:49:51 -04:00
committed by GitHub
parent b111076301
commit 4785cd959a
3 changed files with 5 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ setup(name='tinygrad',
"pre-commit",
"ruff",
"numpy",
"typeguard",
],
#'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@5.0.0-rc3"],
'testing_minimal': testing_minimal,