Skip to content

Releases: brentyi/tyro

v0.9.5

25 Dec 01:42
1704284
Compare
Choose a tag to compare

What's Changed

  • Improve error messages when tyro.conf.arg() options are set in #219
  • Fix subcommand edge cases associated with generics, tyro.conf.Suppress, tyro.conf.AvoidSubcomands in #220

Full Changelog: v0.9.4...v0.9.5

v0.9.4

19 Dec 20:07
dd4f35a
Compare
Choose a tag to compare

What's Changed

  • Support recursive argument suppression in #217
  • Don't assume object hashes are unique in caching logic in #215

Full Changelog: v0.9.3...v0.9.4

v0.9.3

18 Dec 01:16
Compare
Choose a tag to compare

What's Changed

  • Fix edge cases for (nested) custom constructors in #210
  • Fix instantiation edge cases for custom struct types in #211
  • Relax docstring_parser version requirement in #213

Full Changelog: v0.9.2...v0.9.3

v0.9.2

23 Nov 07:44
c195f3a
Compare
Choose a tag to compare

What's Changed

  • Apply use_underscores to decorator-based subcommand names in #208
  • Less restricted type expansion, more robust subcommand matching, improved error messages in #204

Full Changelog: v0.9.1...v0.9.2

v0.9.1

18 Nov 14:23
Compare
Choose a tag to compare

Full Changelog: v0.8.14...v0.9.1

Python 3.13 support, custom constructor API, and significant refactor of internals.

What's Changed

  • typing.Annotated workaround for pydantic v1 in #187
  • Primitive handling rewrite in #189
  • Start struct handling rewrite in #191
  • Fix dictionary + numeric tower edge cases introduced by new primitive API in #192
  • Numeric tower improvements + test in #193
  • setuptools => hatchling in #196
  • Helptext, docs fixes in #199
  • Support Python 3.13 in #200
  • More complete custom constructor docs, refinements in #201

Full Changelog: v0.8.14...v0.9.1

v0.8.14

23 Oct 10:03
b358dfa
Compare
Choose a tag to compare

What's Changed

Improvements for type alias support, generics, and helptext generation.

  • Fix edge cases associated with nested/recursive PEP 695 aliases by @brentyi in #181
  • Support cyclic generics by @brentyi in #182
  • Minor helptext generation improvements by @brentyi in #184

Full Changelog: v0.8.13...v0.8.14

v0.8.13

19 Oct 19:31
Compare
Choose a tag to compare

What's Changed

  • Support suppressed arguments with duplicate names + light refactor for maintainability by @brentyi in #174
  • Allow subcommand_cli_from_dict to specify console_outputs by @mirceamironenco in #175
  • More complete wrappers in tyro.extras (for torchrun, etc) by @brentyi in #176
  • Fix edge case when combining PEP 695 aliases with typing.Annotated[] by @brentyi in #178
  • Fix generic aliases generated by Python 3.12 type statements by @brentyi in #179
  • (refactor) Context-based resolution for generic types by @brentyi in #180

New Contributors

Full Changelog: v0.8.12...v0.8.13

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