Fix cli bug in high version of tyro (#3567)

* limited the tyro version up to 0.9.2

* bump tyro>=0.9.8

* Bump typeguard

* Runtime checking with jaxtyping hook instead of typeguard

* Fix test for Python >=3.11, caused by missing default_factory

---------

Co-authored-by: Brent Yi <yibrenth@gmail.com>
Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
This commit is contained in:
authored and GitHub committed 2025-01-21 03:32:35 -08:00
1 parent 3057c68570
commit 1dc2ebd9dc
3 files changed
+10 -9

No files matched your search

+6 -4
View File
@@ -20,10 +20,12 @@ else:
@dataclass
class TestConfigClass(MethodSpecification):
config: TrainerConfig = TrainerConfig(
method_name="test-method",
pipeline=VanillaPipelineConfig(),
optimizers={},
config: TrainerConfig = field(
default_factory=lambda: TrainerConfig(
method_name="test-method",
pipeline=VanillaPipelineConfig(),
optimizers={},
)
)
description: str = "Test description"