Skip to content

Releases: brentyi/tyro

Release v0.3.2

13 Sep 16:07
Compare
Choose a tag to compare
  • Mirror shtab. Fixes bugs until PRs are merged upstream.
  • Helptext + literal sequence improvements for positional arguments.
  • Introduce dcargs.conf.Suppress[]

Release v0.3.1

08 Sep 00:21
Compare
Choose a tag to compare

Minor: ignore docstring for subcommand_type_from_defaults().

Release v0.3.0

07 Sep 23:50
Compare
Choose a tag to compare

Configuration:

  • For power users, a configuration API based on PEP 593 runtime annotations has been exposed in dcargs.conf.*.
  • This includes: dcargs.conf.AvoidSubcommands, dcargs.conf.Fixed, dcargs.conf.FlagConversionOff, dcargs.conf.Positional, dcargs.conf.subcommand.
  • The recommended approach for a "base configuration" pattern has changed to use these annotations. Introduced dcargs.extras.subcommand_type_from_defaults() to help with this.

Tab completion:

  • Passing --dcargs-print-completion {bash/zsh/tcsh} to any dcargs.cli() script will now print an autocompletion script.

Some API changes:

  • default_instance has been renamed default. The old name will still work, but will raise a warning.
  • avoid_subparsers has been deprecated. It will still work, but will raise a warning.
  • get_parser() has been removed.
  • Deprecated serialization helpers to reduce maintenance burden.

Misc:

  • --field_name can now be passed in instead of --field-name. The latter is still preferred and helptext is unchanged.

Release v0.2.8

02 Sep 21:59
Compare
Choose a tag to compare

Addresses #9.

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.