Releases: brentyi/tyro
Releases · brentyi/tyro
v0.8.12
What's Changed
Minor bug fixes, new features: tyro.conf.EnumChoicesFromValues
(thanks @McD!), tyro.extras.SubcommandApp
(thanks @jedie!).
- Fix inconsistency between
type[T]
andtyping.Type[T]
annotations by @brentyi in #165 - Feature: Markers: EnumChoicesFromValues by @emcd in #168
- Fix
--tyro-write-completion
whenuse_underscores=True
by @brentyi in #173 - Decorator-based subcommand API (
tyro.extras.SubcommandApp
) by @brentyi in #169
New Contributors
Full Changelog: v0.8.11...v0.8.12
v0.8.11
v0.8.10
v0.8.9
v0.8.8
Added tyro.extras.overridable_config_cli()
.
Full Changelog: v0.8.7...v0.8.8
v0.8.7
- Added
config=
argument totyro.cli()
, which takes a sequence oftyro.conf.*
markers. - Error message improvements for custom constructors and sequences over nested types.
Full Changelog: v0.8.6...v0.8.7
v0.8.6
- 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
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
v0.8.3
Switch to internal mirror of argparse
. Fixes issue with Python 3.11.9.
Full Changelog: v0.8.2...v0.8.3