Skip to content

Releases: brentyi/tyro

v0.8.12

11 Oct 01:22
Compare
Choose a tag to compare

What's Changed

Minor bug fixes, new features: tyro.conf.EnumChoicesFromValues (thanks @McD!), tyro.extras.SubcommandApp (thanks @jedie!).

  • Fix inconsistency between type[T] and typing.Type[T] annotations by @brentyi in #165
  • Feature: Markers: EnumChoicesFromValues by @emcd in #168
  • Fix --tyro-write-completion when use_underscores=True by @brentyi in #173
  • Decorator-based subcommand API (tyro.extras.SubcommandApp) by @brentyi in #169

New Contributors

  • @emcd made their first contribution in #168

Full Changelog: v0.8.11...v0.8.12

v0.8.11

18 Sep 17:12
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.10...v0.8.11

v0.8.10

27 Aug 03:26
Compare
Choose a tag to compare

Better support for unions in completion script generation. (#158)

Full Changelog: v0.8.9...v0.8.10

v0.8.9

26 Aug 22:55
Compare
Choose a tag to compare

What's Changed

  • Add workaround for Python<=3.10 get_type_hints() bug in #157
  • Add support for datetime.{date,time,datetime} types in #155
  • Improve error messages for misplaced subcommand options.

Full Changelog: v0.8.8...v0.8.9

v0.8.8

15 Aug 20:15
Compare
Choose a tag to compare

v0.8.7

15 Aug 19:28
Compare
Choose a tag to compare
  • Added config= argument to tyro.cli(), which takes a sequence of tyro.conf.* markers.
  • Error message improvements for custom constructors and sequences over nested types.

Full Changelog: v0.8.6...v0.8.7

v0.8.6

09 Aug 00:16
Compare
Choose a tag to compare
  • Expanded type narrowing support for generics with type parameters bound to Any.
  • Support collections.abc.Sequence.
  • Error message improvements.
  • tyro.conf.arg(prefix_name=False) now applies recursively when custom constructors are passed in.

Full Changelog: v0.8.5...v0.8.6

v0.8.5

25 Jun 14:20
Compare
Choose a tag to compare

Performance and error message improvements.

  • Refactoring to shorten tyro.cli() stack traces.
  • Optimized string operations. tyro.cli() should run ~15% faster.
  • Cleaner error messages for unsupported type annotations and subcommand helpers (#145).

Full Changelog: v0.8.4...v0.8.5

v0.8.4

10 May 11:55
Compare
Choose a tag to compare

Main changes:

  • Added console_outputs={True/False} argument to tyro.cli().
  • Errors are now logged to stderr.

What's Changed

  • More tests, quality-of-life improvements for scripts with multiple workers by @brentyi in #142

Full Changelog: v0.8.3...v0.8.4

v0.8.3

09 Apr 19:24
Compare
Choose a tag to compare

Switch to internal mirror of argparse. Fixes issue with Python 3.11.9.

Full Changelog: v0.8.2...v0.8.3