Tyro

Latest version: v0.9.18

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

Scan your dependencies

Page 19 of 25

0.2.5

Fix spacing bug.

0.2.4

Support general mappings, improve helptext.

0.2.3

Type inference improvements:
- Support `typing.Any` in type narrowing logic.
- Fix bug preventing contained types from being inferred when `dict` is used instead of `dict[KT, VT]`.

0.2.2

Fixes for subparsers:
- Removed obsolete logic that equated optional types (with `Optional[T]` or `Union[T, None]`) as not required (when a default is provided).
- Fix corner case for subparsers in nested classes.

0.2.1

Minor Poetry fixes.

0.2.0

New features:
- Support for mixed-type literals.
- Support nesting structures in standard Python containers: `List[Struct]`, `Set[Struct]`, `Tuple[Struct, Struct]`, `Dict[str, Struct]`, etc.
- Add `dcargs.generate_parser()` for integration with tools like `shtab`, `argcomplete`, `pyzshcomplete`, etc.
- Support defaults with narrower types than annotations.
- Support for including multiple optional subparsers, more clear/verbose subcommand names.
- Support inheritance from generic types.
- Generalized support for directly passing in types, eg `dcargs.cli(Union[SubcommandA, SubcommandB])`.

Maintenance:
- Helptext formatting improvements: consistency for subcommands, Windows support, edge case fixes.
- Reduce redundant logic.

Page 19 of 25

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.