Tyro

Latest version: v0.9.2

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

Scan your dependencies

Page 18 of 22

0.1.6

Niche improvements for nesting:
- Optionals:
- Optional types in containers (eg `List[Optional[T]]`).
- Optional nested structures (eg `Optional[SomeDataclassType]`).
- Remove limit on of nested unions/subparsers (previously: one union over child structures per parent class).

Enabling more useful "base configuration" design patterns via `default_instance`:
- Introduce `dcargs.MISSING` for marking arguments as missing defaults.
- Introduce `avoid_subparsers` argument for `dcargs.cli()`.

0.1.5

- Added support for general dictionary annotations, via `typing.Dict[K, V]`.
- Refactored argument definition backend, which fixes some helptext corner cases for nested positional arguments.

0.1.4

Improvements for non-dataclass nested structures:
- Helptext fix for standard classes.
- TypedDict support.
- NamedTuple support.

0.1.3

Minor bug fixes:
- Underscores in positional arguments.
- Booleans with defaults in positional arguments.
- Docstring corner case for generics.

0.1.2

Significantly more thorough checks for unsupported type annotations.

0.1.1

Minor error handling improvements, better backward-compatibility.

Page 18 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.