-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve error messages * Tweak error messages, fix types * Use difflib, add help messages * ruff + black --preview * allow_abbrev=False in subparsers * Fix exit codes * Fix type errors * Tune similarity thresholds * Fix metavar ordering regression * Tweak unrecognized argument filter * Improve error messages for unrecognized arguments with subparsers (by a lot!) * Fix unrecognized argument false positives * Python 3.7-compatible mypy * Polish unrecognized argument error message when subcommands are present * Fix for duplicate arguments * Fix `same_exists` default * Print helptext of similar arguments * Refine helptext in error messages * Remove delete * Add tests + heuristics * Tweaks for coverage * Fix or suppress mypy error * Fix test * Bump version * Error message cleanup, test fixes * Handle flags / custom actions in unrecognized argument errors * Fix Python 3.7 * Hack for jax error * Revert jax hack * Suppress long usage prints * Error message consistency * Test coverage * Fix test typo
- Loading branch information
Showing
13 changed files
with
1,102 additions
and
86 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ name = "tyro" | |
authors = [ | ||
{name = "brentyi", email = "[email protected]"}, | ||
] | ||
version = "0.5.5" | ||
version = "0.5.6" | ||
description = "Strongly typed, zero-effort CLI interfaces" | ||
readme = "README.md" | ||
license = { text="MIT" } | ||
|
@@ -41,7 +41,7 @@ dev = [ | |
"attrs>=21.4.0", | ||
"torch>=1.10.0", | ||
"pyright>=1.1.264", | ||
"mypy>=0.991", | ||
"mypy>=1.4.1", | ||
"numpy>=1.20.0", | ||
# As of 7/27/2023, flax install fails for Python 3.7 without pinning to an | ||
# old version. But doing so breaks other Python versions. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.