feat: improve type hints (#1515)

* feat(plugins/registry): Improve Type Hints

* feat(exporter/texture_utils): Improve Type Hints

* feat(exporter/tsdf_utils): Improve Type Hints

* feat(cameras/camera_utils): Improve Type Hints

* feat(cameras/cameras): Improve Type Hints

* feat(cameras/rays): Improve Type Hints

* fix: add default value for device

* fix: ArrayLike type hint
This commit is contained in:
Saurav Maheshkar authored and GitHub committed 2023-02-26 12:22:45 -08:00
1 parent 7309273d92
commit 4545dcb6b3
6 files changed
+44 -27

No files matched your search

+2 -1
View File
@@ -21,6 +21,7 @@ import typing as t
from rich.progress import Console
from nerfstudio.engine.trainer import TrainerConfig
from nerfstudio.plugins.types import MethodSpecification
if sys.version_info < (3, 10):
@@ -30,7 +31,7 @@ else:
CONSOLE = Console(width=120)
def discover_methods():
def discover_methods() -> t.Tuple[t.Dict[str, TrainerConfig], t.Dict[str, str]]:
"""
Discovers all methods registered using the `nerfstudio.method_configs` entrypoint.
"""