Tyro

Latest version: v0.9.2

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

Scan your dependencies

Page 19 of 22

0.1.0

dcargs.parse()` has been renamed `dcargs.cli()`.
Instead of just dataclasses, we now support general typed callables: functions, standard classes, attrs, etc.

0.0.21

Docstring and helptext improvements:
- Suppress TypeError from docstring parser in Jupyter notebooks.
- Comment parsing is now more robust; it also now supports grouping,
where the same comment is associated with multiple fields.
- Printed defaults, particularly for sequence types (lists, tuples,
sets), are now more consistently formatted.

0.0.20

Improved readability of `--help`. We now group arguments and generate comment/docstring-based helptext for nested dataclasses.

0.0.19

Redesigned how annotations are parsed and used to instantiate fields; an iterative process is now recursive.

This is simpler, enables more informative error messages, and makes containers slightly more robust; supported annotations now include sequence types containing literals or enums (eg `List[Literal[0, 1, 2, 3]]` or `Tuple[SomeEnum, SomeEnum, SomeEnum]`).

0.0.18

Helptext + default value improvements!

0.0.17

Page 19 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.