WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 9, 2025

Updates the requirements on tyro to permit the latest version.

Release notes

Sourced from tyro's releases.

v1.0.0

First stable release 👍

tyro==1.0.0 introduces a rewritten parsing and helptext generation backend, which:

  1. Scales better to large configs.
  2. Reduces install and import overhead.
  3. Improves subcommand UX.

There are no (intentional) breaking changes.

Runtime improvements

We were previously bottlenecked by an argparse intermediate. The new parsing backend is more efficient:

The final plot shows a previously combinatorial edge case. Benchmarks are run in Python 3.12 on an M4 Macbook Air; code can be found in the benchmark/ directory.

~6x smaller dependency size, ~2.2x faster import

Reduced dependencies ⇒ faster installs and imports:

Improved subcommand UX

The new parsing backend resolves long-standing subcommand limitations; relevant issues include #60, #61, #89, #132, #152, #281, #298, #316, #329, #346, and #354.

Subcommand ordering is now more flexible. In this example, the dataset type previously needed to be specified before the optimizer type:

def train(
    dataset: Mnist | ImageNet = Mnist(),
    optimizer: Adam | Sgd = Adam(),
) -> None:
    ...
tyro.cli(train)

Type selection is now order-agnostic.

Argument ordering can be made more flexible. tyro.conf.CascadeSubcommandArgs enables (i) implicit subcommand selection and (ii) argument cascading, which reduces sensitivity to argument ordering. This can make a big UX difference; see docs for notes!

Minor features

Deprecations

... (truncated)

Commits
  • 2591080 1.0.0
  • 66cb81d Improve support for *args and **kwargs (#399)
  • 405a33e Add primitive rule for upath.UPath (#398)
  • d15e5bf Deprecate tyro.extras.get_parser(), update README/docs (#397)
  • 4d37021 Support types with overloaded __eq__ operator (#396)
  • 8989fec Value-based default subcommand matching, tyro.conf.NewSubcommandForDefaults...
  • 914b733 Docs and helptext updates
  • c72e997 Handle DisallowNone for subcommands (#393)
  • a3aaf43 Support dataclass fields that set init=False (#391)
  • b547357 Subcommand edge case: TypedDict with total=False, typing.NotRequired[] ...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [tyro](https://github.com/brentyi/tyro) to permit the latest version.
- [Release notes](https://github.com/brentyi/tyro/releases)
- [Commits](brentyi/tyro@v0.9.2...v1.0.0)

---
updated-dependencies:
- dependency-name: tyro
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants