Tyro

Latest version: v0.9.2

Safety actively analyzes 688803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 22

0.3.34

(yanked)
Add `tyro.conf.ConsolidateSubcommandArgs`, `tyro.conf.configure()`.

0.3.33

Fix corner cases with non-leading positional arguments, helptext formatting.

0.3.32

- Add `tyro.conf.arg()`.
- Add (currently undocumented) support for `"help"` metadata in dataclass fields. This should generally not be encouraged, but improves compatibility with HuggingFace-style configs.

0.3.31

Fixed flag conversion bug caused by runtime annotations:
python
flag1: bool = False worked
flag2: Annotated[bool, "something"] = False failed

0.3.30

PEP 604 support for Python 3.9. (fixes 19)
Improve error message for subcommands with unmatched defaults. (eg `x: A | B = C()`, where `issubclass(C, A) == issubclass(C, B) == False`)

0.3.29

- Shift to upstream version of `shtab` for tab completion.
- Support classes defined using `attrs` and `pydantic`.
- Minor fixes for typing and docs.
- Support `dataclasses.InitVar`.

Page 10 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.