Jsonargparse

Latest version: v4.34.0

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

Scan your dependencies

Page 11 of 18

4.3.1

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

Fixed
^^^^^
- Incorrect use of ``yaml_load`` with jsonnet parser mode (`125
<https://github.com/omni-us/jsonargparse/issues/125>`__).
- Load of subconfigs not correctly changing working directory (`125
<https://github.com/omni-us/jsonargparse/issues/125>`__).
- Regression introduced in commit 97e4567 fixed and updated unit test to prevent
it (`128 <https://github.com/omni-us/jsonargparse/issues/128>`__).
- ``--print_config`` fails for subcommands when ``default_env=True`` (`126
<https://github.com/omni-us/jsonargparse/issues/126>`__).

4.3.0

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

Added
^^^^^
- Subcommands now also consider parent parser's ``default_config_files``
(`lightning11622
<https://github.com/Lightning-AI/lightning/pull/11622>`__).
- Automatically added group config load options are now shown in the help 121.

Fixed
^^^^^
- Dumper for ``jsonnet`` should be json instead of yaml (`123
<https://github.com/omni-us/jsonargparse/issues/123>`__).
- ``jsonnet`` import path not working correctly (`122
<https://github.com/omni-us/jsonargparse/issues/122>`__).

Changed
^^^^^^^
- ``ArgumentParser`` objects are now pickleable (`lightning12011
<https://github.com/Lightning-AI/lightning/pull/12011>`__).

4.2.0

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

Added
^^^^^
- ``object_path_serializer`` and ``import_object`` support class methods 99.
- ``parser_mode`` is now a property that when set, propagates to subparsers.
- ``add_method_arguments`` also add parameters from same method of parent
classes when ``*args`` or ``**kwargs`` present.

Fixed
^^^^^
- Optional Enum types incorrectly adding a ``--*.help`` argument.
- Specific errors for invalid value for ``--*.help class_path``.

4.1.4

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

Fixed
^^^^^
- Subcommand parsers not using the parent's ``parser_mode``.
- Namespace ``__setitem__`` failing when key corresponds to a nested dict.

4.1.3

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

Fixed
^^^^^
- String within curly braces parsed as dict due to yaml spec implicit values.

4.1.2

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

Fixed
^^^^^
- Namespace TypeError with non-str inputs (`116
<https://github.com/omni-us/jsonargparse/issues/116>`__).
- ``print_config`` failing on subclass with required arguments (`115
<https://github.com/omni-us/jsonargparse/issues/115>`__).

Page 11 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.