Jsonargparse

Latest version: v4.34.0

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

Scan your dependencies

Page 12 of 18

4.1.1

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

Fixed
^^^^^
- Bad config merging in ``handle_subcommands`` (`lightning10859
<https://github.com/Lightning-AI/lightning/issues/10859>`__).
- Unit tests failing with argcomplete>=2.0.0.

4.1.0

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

Added
^^^^^
- ``set_loader`` function to allow replacing default yaml loader or adding a
new parser mode.
- ``set_dumper`` function to allow changing default dump formats or adding new
named dump formats.
- ``parser_mode='omegaconf'`` option to use OmegaConf as a loader, adding
variable interpolation support.

Fixed
^^^^^
- ``class_from_function`` missing dereference of string return type (`105
<https://github.com/omni-us/jsonargparse/issues/105>`__).

4.0.4

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

Fixed
^^^^^
- Linking of attributes applied on instantiation ignoring compute_fn.
- Show full class paths in ``--*.help`` description to avoid misinterpretation.
- ``--*.help`` action failing when fail_untyped and/or skip is required. (`101
<https://github.com/omni-us/jsonargparse/issues/101>`__).
- Raise exception if lazy_instance called with invalid lazy_kwargs.
- Only add subclass defaults on defaults merging (`103
<https://github.com/omni-us/jsonargparse/issues/103>`__).
- Strict type and required only on final config check (`31
<https://github.com/omni-us/jsonargparse/issues/31>`__).
- instantiate_classes failing for type hints with ``nargs='+'``.
- Useful error message when init_args value invalid.
- Specific error message when subclass dict has unexpected keys.
- Removed unnecessary recursive calls causing slow parsing.

4.0.3

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

Fixed
^^^^^
- Command line parsing of init_args failing with subclasses without a default.
- get_default failing when destination key does not exist in default config file.
- Fixed issue with empty help string caused by a change in argparse python 3.9.

4.0.2

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

Fixed
^^^^^
- Specifying init_args from the command line resulting in empty namespace when
no prior class_path given.
- Fixed command line parsing of class_path and init_args options within
subcommand.
- lazy_instance of final class leading to incorrect default that includes
class_path and init_args.
- add_subclass_arguments not accepting a default keyword parameter.
- Make it possible to disable deprecation warnings.

4.0.0

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

Added
^^^^^
- New Namespace class that natively supports nesting and avoids flat/dict
conversions.
- python 3.10 is now supported and included in circleci tests.
- Readme changed to use doctest and tests are run in github workflow.
- More type hints throughout the code base.
- New unit tests to increase coverage.
- Include dataclasses extras require for tox testing.
- Automatic namespace to dict for link based on target or compute_fn type.

Fixed
^^^^^
- Fixed issues related to conflict namespace base.
- Fixed the parsing of ``Dict[int, str]`` type (`87
<https://github.com/omni-us/jsonargparse/issues/87>`__).
- Fixed inner relative config with for commented tests for parse_env and CLI.
- init_args from default_config_files not discarded when class_path is
overridden.
- Problems with class instantiation for parameters of final classes.
- dump/save not removing linked target keys.
- lazy_instance not working with torch.nn.Module (`96
<https://github.com/omni-us/jsonargparse/issues/96>`__).

Changed
^^^^^^^
- General refactoring and cleanup related to new Namespace class.
- Parsed values from ActionJsonSchema/ActionJsonnet are now dict instead of
Namespace.
- Removed support for python 3.5 and related code cleanup.
- contextvars package is now an install require for python 3.6.
- Deprecations are now shown as JsonargparseDeprecationWarning.

Deprecated
^^^^^^^^^^
- ArgumentParser's ``parse_as_dict`` option will be removed in v5.0.0.
- ArgumentParser's ``instantiate_subclasses`` method will be removed in v5.0.0.

Removed
^^^^^^^
- python 3.5 is no longer supported.

Page 12 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.