Jsonargparse

Latest version: v4.34.0

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

Scan your dependencies

Page 14 of 18

3.17.0

Not secure
--------------------

Added
^^^^^
- ``datetime.timedelta`` now supported as a type.
- New function ``class_from_function`` to add signature of functions that
return an instantiated class.

Fixed
^^^^^
- ``--*.init_args.*`` causing crash when overriding value from config file.

3.16.1

Not secure
--------------------

Fixed
^^^^^
- Signature functions not working for classes implemented with ``__new__``.
- ``instantiate_classes`` failing when keys not present in config object.

3.16.0

Not secure
--------------------

Added
-----
- ``lazy_instance`` function for serializable class type defaults.
- Support for parsing multiple matched default config files (`58
<https://github.com/omni-us/jsonargparse/issues/58>`__).

Fixed
^^^^^
- ``--*.class_path`` and ``--*.init_args.*`` arguments not being parsed.
- ``--help`` broken when default_config_files fail to parse (`60
<https://github.com/omni-us/jsonargparse/issues/60>`__).
- Pattern in default_config_files not using sort.

3.15.0

Not secure
--------------------

Added
^^^^^
- Decorator for final classes and an is_final_class function to test it.
- Support for final classes as type hint.
- ``add_subclass_arguments`` now supports multiple classes given as tuple.
- ``add_subclass_arguments`` now supports the instantiate parameter.

Fixed
^^^^^
- Parsing of relative paths inside inner configs for type hint actions.

3.14.0

Not secure
--------------------

Added
^^^^^
- Method ``instantiate_classes`` that instantiates subclasses and class groups.
- Support for ``link_arguments`` that are applied on instantiation.
- Method ``add_subclass_arguments`` now supports skipping of arguments.
- Added support for Type in type hints (`59
<https://github.com/omni-us/jsonargparse/issues/59>`__).

Fixed
^^^^^
- Custom string template to avoid problems with percent symbols in docstrings.

3.13.1

Not secure
--------------------

Fixed
^^^^^
- Type hint Any not correctly serializing Enum and registered type values.

Page 14 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.