Jsonargparse

Latest version: v4.34.0

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

Scan your dependencies

Page 8 of 18

4.13.3

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

Fixed
^^^^^
- Failure to parse when subcommand has no options (`158
<https://github.com/omni-us/jsonargparse/issues/158>`__).
- Optional packages being imported even though not used.
- Append to list not working for ``default_config_files`` (`157
<https://github.com/omni-us/jsonargparse/issues/157>`__).

4.13.2

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

Fixed
^^^^^
- Failure to print help when ``object`` used as type hint.
- Failure to parse init args when type hint is union of str and class.
- Handle change of non-existent file exception type in latest fsspec version.

4.13.1

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

Fixed
^^^^^
- Regression that caused parse to fail when providing ``init_args`` from command
line and the subclass default set as a dict.

4.13.0

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

Added
^^^^^
- Support setting through command line individual dict items without replacing
(`133 comment
<https://github.com/omni-us/jsonargparse/issues/133#issuecomment-1194305222>`__).
- Support ``super()`` with non-immediate method resolution order parameter (`153
<https://github.com/omni-us/jsonargparse/issues/153>`__).

Fixed
^^^^^
- Mypy fails to find jsonargparse type hints (`151
<https://github.com/omni-us/jsonargparse/issues/151>`__).
- For multiple ``dict_kwargs`` command line arguments only the last one was
kept.
- Positional ``list`` with subtype causing crash (`154
<https://github.com/omni-us/jsonargparse/issues/154>`__).

4.12.0

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

Added
^^^^^
- Instantiation links now support multiple sources.
- AST resolver now supports ``cls()`` class instantiation in ``classmethod``
(`146 <https://github.com/omni-us/jsonargparse/issues/146>`__).
- AST resolver now supports ``pop`` and ``get`` from ``**kwargs``.

Fixed
^^^^^
- `file:///` scheme not working in windows (`144
<https://github.com/omni-us/jsonargparse/issues/144>`__).
- Instantiation links with source an entire subclass incorrectly showed
``--*.help``.
- Ensure AST-based parameter resolver handles value-less type annotations without error
(`148 <https://github.com/omni-us/jsonargparse/issues/148>`__).
- Discarding ``init_args`` on ``class_path`` change not working for ``Union``
with mixed non-subclass types.
- In some cases debug logs not shown even though ``JSONARGPARSE_DEBUG`` set.

Changed
^^^^^^^
- Instantiation links with source an entire class no longer requires to have a
compute function.
- Instantiation links no longer restricted to first nesting level.
- AST parameter resolver now only logs debug messages instead of failing (`146
<https://github.com/omni-us/jsonargparse/issues/146>`__).
- Documented AST resolver support for ``**kwargs`` use in property.

4.11.0

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

Added
^^^^^
- ``env_prefix`` property now also accepts boolean. If set to False, no prefix
is used for environment variable names (`145
<https://github.com/omni-us/jsonargparse/pull/145>`__).
- ``link_arguments`` support target being an entire subclass object
(`lightning13539
<https://github.com/Lightning-AI/lightning/discussions/13539>`__).

Fixed
^^^^^
- Method resolution order not working correctly in parameter resolvers (`143
<https://github.com/omni-us/jsonargparse/issues/143>`__).

Deprecated
^^^^^^^^^^
- ``env_prefix`` property will no longer accept ``None`` in v5.0.0.

Page 8 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.