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

+2 -2
View File
@@ -83,7 +83,7 @@ The `NERFSTUDIO_METHOD_CONFIGS` environment variable additionally accepts a func
```python
"""my_method/my_config.py"""
from dataclasses import dataclass
from dataclasses import dataclass, field
from nerfstudio.engine.trainer import TrainerConfig
from nerfstudio.plugins.types import MethodSpecification
@@ -95,7 +95,7 @@ def MyMethodFunc():
@dataclass
class MyMethodClass(MethodSpecification):
config: TrainerConfig = TrainerConfig(...)
config: TrainerConfig = field(default_factory=lambda: TrainerConfig(...))
description: str = "Custom description"
```