Skip to content

Releases: brentyi/tyro

Release v0.2.7

01 Sep 22:15
Compare
Choose a tag to compare

Minor bug fix for #7.

Release v0.2.6

28 Aug 02:31
Compare
Choose a tag to compare
  • Responsive helptext formatting.
  • (Slightly hacky) annotation improvements for supporting dcargs.cli(Union[T1, T2]) in Pyright.

Release v0.2.5

26 Aug 03:32
Compare
Choose a tag to compare

Fix spacing bug.

Release v0.2.4

26 Aug 03:21
Compare
Choose a tag to compare

Support general mappings, improve helptext.

Release v0.2.3

25 Aug 02:42
Compare
Choose a tag to compare

Type inference improvements:

  • Support typing.Any in type narrowing logic.
  • Fix bug preventing contained types from being inferred when dict is used instead of dict[KT, VT].

Release v0.2.2

24 Aug 20:03
Compare
Choose a tag to compare

Fixes for subparsers:

  • Removed obsolete logic that equated optional types (with Optional[T] or Union[T, None]) as not required (when a default is provided).
  • Fix corner case for subparsers in nested classes.

Release v0.2.1

23 Aug 23:35
Compare
Choose a tag to compare

Minor Poetry fixes.

Release v0.2.0

23 Aug 23:12
93f5baa
Compare
Choose a tag to compare

New features:

  • Support for mixed-type literals.
  • Support nesting structures in standard Python containers: List[Struct], Set[Struct], Tuple[Struct, Struct], Dict[str, Struct], etc.
  • Add dcargs.generate_parser() for integration with tools like shtab, argcomplete, pyzshcomplete, etc.
  • Support defaults with narrower types than annotations.
  • Support for including multiple optional subparsers, more clear/verbose subcommand names.
  • Support inheritance from generic types.
  • Generalized support for directly passing in types, eg dcargs.cli(Union[SubcommandA, SubcommandB]).

Maintenance:

  • Helptext formatting improvements: consistency for subcommands, Windows support, edge case fixes.
  • Reduce redundant logic.

Release v0.1.10

21 Jul 22:15
Compare
Choose a tag to compare

Re-add the py.typed marker, which was inadvertently deleted.

Release v0.1.9

19 Jul 13:21
Compare
Choose a tag to compare
  • Documentation refactor.
  • Serialization utilities have been moved to dcargs.extras.*.