Avoid boolean flag auto conversion (#929)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-11-09 20:23:05 -08:00
1 parent c5c980dd4d
commit ee6b007155
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -185,7 +185,9 @@ method_configs["tensorf"] = Config(
)
AnnotatedBaseConfigUnion = tyro.conf.SuppressFixed[ # Don't show unparseable (fixed) arguments in helptext.
tyro.extras.subcommand_type_from_defaults(defaults=method_configs, descriptions=descriptions)
tyro.conf.FlagConversionOff[
tyro.extras.subcommand_type_from_defaults(defaults=method_configs, descriptions=descriptions)
]
]
"""Union[] type over config types, annotated with default instances for use with
tyro.cli(). Allows the user to pick between one of several base configurations, and
+1 -1
View File
@@ -18,7 +18,7 @@ dependencies = [
"aiortc==1.3.2",
"appdirs>=1.4",
"av==9.2.0",
"tyro>=0.3.23",
"tyro>=0.3.31",
"gdown==4.5.1",
"ninja==1.10.2.3",
"functorch==0.2.1",
+1 -1
View File
@@ -120,7 +120,7 @@ Commands = Union[
def entrypoint():
"""Entrypoint for use with pyproject scripts."""
tyro.extras.set_accent_color("bright_yellow")
tyro.cli(Commands).main()
tyro.cli(tyro.conf.FlagConversionOff[Commands]).main()
if __name__ == "__main__":