mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +08:00
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:
3 files changed
+10
-9
No files matched your search
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user