Skip to content

Releases: brentyi/tyro

Release v0.3.38

26 Jan 02:37
Compare
Choose a tag to compare

Minor improvements for helptext from pydantic dataclasses.

Release v0.3.37

06 Jan 09:12
37cf5b8
Compare
Choose a tag to compare
  • Fix corner case with placing multiple subcommands below the root level (#29)
  • Handle mixing of nested / non-nested types more gracefully
  • Fix a broken f-string (#28)
  • Minor internal improvements

Release v0.3.36

12 Dec 20:56
32022ad
Compare
Choose a tag to compare
  • Support functools.partial and functools.wraps.
  • Various minor bug fixes.

Release v0.3.35

21 Nov 07:22
f66c773
Compare
Choose a tag to compare

Add tyro.conf.ConsolidateSubcommandArgs, tyro.conf.configure().

Release v0.3.34

20 Nov 03:43
Compare
Choose a tag to compare

(yanked)
Add tyro.conf.ConsolidateSubcommandArgs, tyro.conf.configure().

Release v0.3.33

12 Nov 01:17
Compare
Choose a tag to compare

Fix corner cases with non-leading positional arguments, helptext formatting.

Release v0.3.32

11 Nov 18:22
Compare
Choose a tag to compare
  • Add tyro.conf.arg().
  • Add (currently undocumented) support for "help" metadata in dataclass fields. This should generally not be encouraged, but improves compatibility with HuggingFace-style configs.

Release v0.3.31

10 Nov 03:43
f024f92
Compare
Choose a tag to compare

Fixed flag conversion bug caused by runtime annotations:

flag1: bool = False # worked
flag2: Annotated[bool, "something"] = False # failed

Release v0.3.30

07 Nov 14:03
64fda6f
Compare
Choose a tag to compare

PEP 604 support for Python 3.9. (fixes #19)
Improve error message for subcommands with unmatched defaults. (eg x: A | B = C(), where issubclass(C, A) == issubclass(C, B) == False)

Release v0.3.29

03 Nov 03:33
Compare
Choose a tag to compare
  • Shift to upstream version of shtab for tab completion.
  • Support classes defined using attrs and pydantic.
  • Minor fixes for typing and docs.
  • Support dataclasses.InitVar.