-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
150 additions
and
60 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Starý vs nový tyro | ||
|
||
$ ./program.py --help | ||
/home/edvard/.local/lib/python3.12/site-packages/tyro/_parsers.py:337: UserWarning: The field `further` is annotated with type `<class 'tests.configs.FurtherEnv1'>`, but the default value `<dataclasses._MISSING_TYPE object at 0x72dd0c88cd40>` has type `<class 'dataclasses._MISSING_TYPE'>`. We'll try to handle this gracefully, but it may cause unexpected behavior. | ||
warnings.warn(message) | ||
usage: program.py [-h] [-v] [{further:further-env1,further:_missing-type}] | ||
|
||
╭─ options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ -h, --help show this help message and exit │ | ||
│ -v, --verbose Verbosity level. Can be used twice to increase. │ | ||
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
╭─ optional subcommands ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ (default: further:_missing-type) │ | ||
│ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ | ||
│ [{further:further-env1,further:_missing-type}] │ | ||
│ further:further-env1 │ | ||
│ further:_missing-type │ | ||
│ Initialize self. See help(type(self)) for accurate signature. │ | ||
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
edvard@kolonok:~/edvard/www/mininterfaceX [dev *]$ ./program.py --help | ||
usage: program.py [-h] [-v] [--further.token STR] [--further.host STR] | ||
|
||
╭─ options ───────────────────────────────────────────────────────────────╮ | ||
│ -h, --help show this help message and exit │ | ||
│ -v, --verbose Verbosity level. Can be used twice to increase. │ | ||
╰─────────────────────────────────────────────────────────────────────────╯ | ||
╭─ further options ───────────────────────────────────────────────────────╮ | ||
│ --further.token STR (default: filled) │ | ||
│ --further.host STR (default: example.org) │ | ||
╰─────────────────────────────────────────────────────────────────────────╯ | ||
edvard@kolonok:~/edvard/www/mininterfaceX [dev *]$ |
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
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
number: 100 | ||
inner: | ||
number: 0 | ||
unknown_field: here |