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