Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 14, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
jsonargparse (changelog) ==4.36.0 -> ==4.41.0 age confidence

Release Notes

omni-us/jsonargparse (jsonargparse)

v4.41.0

Compare Source

Added
^^^^^

  • Support for Python 3.14 (#&#8203;753 <https://github.com/omni-us/jsonargparse/pull/753>__).
  • Support callable protocols for instance factory dependency injection (#&#8203;758 <https://github.com/omni-us/jsonargparse/pull/758>__).
  • New ActionFail for arguments that should fail parsing with a given error
    message (#&#8203;759 <https://github.com/omni-us/jsonargparse/pull/759>__).
  • Experimental omegaconf+ parser mode that supports variable interpolation
    and resolving across configs and command line arguments. Depending on
    community feedback, in v5.0.0 this new mode could replace the current
    omegaconf mode, introducing a breaking change (#&#8203;765 <https://github.com/omni-us/jsonargparse/pull/765>__).

Fixed
^^^^^

  • Improved parameter kind handling for argument requirement determination.
    KEYWORD_ONLY parameters now correctly use --flag style (#&#8203;756 <https://github.com/omni-us/jsonargparse/pull/756>__).
  • Some deprecations not shown in the API documentation (#&#8203;760 <https://github.com/omni-us/jsonargparse/pull/760>__).
  • Environment variable names not shown in help for positional arguments when
    default_env is true (#&#8203;763 <https://github.com/omni-us/jsonargparse/pull/763>__).
  • parse_object not parsing correctly configs (#&#8203;765 <https://github.com/omni-us/jsonargparse/pull/765>__).

Changed
^^^^^^^

  • Removed support for python 3.8 (#&#8203;752 <https://github.com/omni-us/jsonargparse/pull/752>__).
  • YAML comments feature is now implemented in a separate class to allow
    better support for custom help formatters without breaking the comments (#&#8203;754 <https://github.com/omni-us/jsonargparse/pull/754>__).
  • Replaced unmaintained optional dependency ruyaml with ruamel.yaml
    (#&#8203;768 <https://github.com/omni-us/jsonargparse/pull/768>__).

Deprecated
^^^^^^^^^^

  • DefaultHelpFormatter.*_yaml*_comment* methods are deprecated and will be
    removed in v5.0.0. This logic has been moved to a new private class
    YAMLCommentFormatter. If deemed necessary, this class might be made public
    in the future (#&#8203;754 <https://github.com/omni-us/jsonargparse/pull/754>__).
  • The ruyaml optional dependency is deprecated and will be removed in
    v5.0.0. Instead use the ruamel optional dependency (#&#8203;768 <https://github.com/omni-us/jsonargparse/pull/768>__).

v4.40.2

Compare Source

Fixed
^^^^^

  • Subclass defaults incorrectly taken from base class (#&#8203;743 <https://github.com/omni-us/jsonargparse/pull/743>__).
  • Linking entire dataclasses on instantiation not working (#&#8203;746 <https://github.com/omni-us/jsonargparse/pull/746>__).
  • Introspection of postponed annotations from jax not working (#&#8203;749 <https://github.com/omni-us/jsonargparse/pull/749>__).
  • without-future-annotations test not included in local coverage (#&#8203;751 <https://github.com/omni-us/jsonargparse/pull/751>__).

v4.40.1

Compare Source

Fixed
^^^^^

  • print_shtab incorrectly parsed from environment variable (#&#8203;726 <https://github.com/omni-us/jsonargparse/pull/726>__).
  • adapt_class_type used a locally defined partial_instance wrapper
    function that is not pickleable (#&#8203;728 <https://github.com/omni-us/jsonargparse/pull/728>__).
  • ArgumentParser with dashes incorrectly resolves paths to default values (#&#8203;736 <https://github.com/omni-us/jsonargparse/pull/736>__).
  • Fix failing tests due to new version of typeshed-client (#&#8203;740 <https://github.com/omni-us/jsonargparse/pull/740>__).
  • Require new version of docstring-parser to avoid deprecation warnings
    (#&#8203;741 <https://github.com/omni-us/jsonargparse/pull/741>__).

v4.40.0

Compare Source

Added
^^^^^

  • New auto_parser function for convenience and more visibility of the
    capture_parser feature (#&#8203;721 <https://github.com/omni-us/jsonargparse/pull/721>__).

Fixed
^^^^^

  • set_parsing_settings(validate_defaults=True) fails when the parser has a
    config action (#&#8203;718 <https://github.com/omni-us/jsonargparse/pull/718>__).
  • Regression causing dump/save to fail when skip_link_targets=True and
    target being an entire required dataclass (#&#8203;717 <https://github.com/omni-us/jsonargparse/pull/717>__).
  • TypedDict values not validated when types are forward references (#&#8203;722 <https://github.com/omni-us/jsonargparse/pull/722>__).
  • Stubs-only resolver incorrectly triggered when inspect.signature available
    leading to missing parameter defaults (#&#8203;724 <https://github.com/omni-us/jsonargparse/pull/724>__).

Changed
^^^^^^^

  • Use latest jsonnet release that works on all platforms and python versions
    (#&#8203;682 <https://github.com/omni-us/jsonargparse/pull/682>__).

Deprecated
^^^^^^^^^^

  • LoggerProperty is deprecated and will be removed in v5.0.0. There is no
    replacement since jsonargparse is not a logging library. A similar class can
    be found in reconplogger (#&#8203;719 <https://github.com/omni-us/jsonargparse/pull/719>__).
  • namespace_to_dict is deprecated and will be removed in v5.0.0. Instead use
    .clone().as_dict() or .as_dict() (#&#8203;720 <https://github.com/omni-us/jsonargparse/pull/720>__).

v4.39.0

Compare Source

Added
^^^^^

  • shtab hint for positionals in bash now includes the argument name (#&#8203;699 <https://github.com/omni-us/jsonargparse/pull/699>__).
  • shtab support for optionals parsed as positionals (#&#8203;700 <https://github.com/omni-us/jsonargparse/pull/700>__).
  • auto_cli now supports class @property (#&#8203;701 <https://github.com/omni-us/jsonargparse/pull/701>__).
  • Resolve parameters completely from stubs when inspect.signature fails
    (#&#8203;698 <https://github.com/omni-us/jsonargparse/pull/698>__).
  • Option to enable validation of default values (#&#8203;711 <https://github.com/omni-us/jsonargparse/pull/711>__).
  • Experimental support for custom instantiators receiving values applied by
    instantiation links (#&#8203;716 <https://github.com/omni-us/jsonargparse/pull/716>__).

Changed
^^^^^^^

  • Untyped parameters with None default no longer skipped when
    fail_untyped=True (#&#8203;697 <https://github.com/omni-us/jsonargparse/pull/697>__).
  • config_read_mode and docstring_parse options can now be set using
    set_parsing_settings (#&#8203;712 <https://github.com/omni-us/jsonargparse/pull/712>__).

Fixed
^^^^^

  • ActionParser not updating dest of groups for instantiation (#&#8203;707 <https://github.com/omni-us/jsonargparse/pull/707>__).
  • Nested generic dataclasses not working correctly (#&#8203;709 <https://github.com/omni-us/jsonargparse/pull/709>__).
  • List append nested in subclass not working (#&#8203;710 <https://github.com/omni-us/jsonargparse/pull/710>__).

Deprecated
^^^^^^^^^^

  • get_config_read_mode, set_config_read_mode and
    set_docstring_parse_options are deprecated and will be removed in v5.0.0.
    Instead of set_config_read_mode and set_docstring_parse_options use
    set_parsing_settings. There will be no replacement for
    get_config_read_mode since this is considered internal (#&#8203;712 <https://github.com/omni-us/jsonargparse/pull/712>__).

v4.38.0

Compare Source

Added
^^^^^

  • Support shtab completion of Literal types (#&#8203;693 <https://github.com/omni-us/jsonargparse/pull/693>__).
  • Support for parsing optionals as positionals (#&#8203;692 <https://github.com/omni-us/jsonargparse/pull/692>__).

Changed
^^^^^^^

  • validate now checks values before required so that errors related to wrong
    level in a config are easier to understand (#&#8203;681 <https://github.com/omni-us/jsonargparse/pull/681>__).
  • add_argument of a positional and providing default now raises an error
    (#&#8203;694 <https://github.com/omni-us/jsonargparse/pull/694>__).

Fixed
^^^^^

  • add_class_arguments with dashes in the nested_key fail to instantiate
    (#&#8203;679 <https://github.com/omni-us/jsonargparse/pull/679>__).
  • Regression parsing strings with omegaconf as the parser mode (#&#8203;686 <https://github.com/omni-us/jsonargparse/pull/686>__).
  • Help incorrectly showing environment variable name for --print_shtab.
  • add_argument raises error when type is assigned with action=None
    (#&#8203;687 <https://github.com/omni-us/jsonargparse/pull/687>__).
  • shtab failing when parser has positional arguments (#&#8203;693 <https://github.com/omni-us/jsonargparse/pull/693>__).

v4.37.0

Compare Source

Added
^^^^^

  • Experimental support for sub-classing ArgumentParser to customize
    add_argument (#&#8203;661 <https://github.com/omni-us/jsonargparse/pull/661>__).

Fixed
^^^^^

  • Incorrect instantiation order when instantiation targets share a parent (#&#8203;662 <https://github.com/omni-us/jsonargparse/pull/662>__).
  • Pydantic discriminated unions handled incorrectly (#&#8203;667 <https://github.com/omni-us/jsonargparse/pull/667>__).
  • Failure when a link target has an undefined parent (#&#8203;668 <https://github.com/omni-us/jsonargparse/pull/668>__).
  • Functions that create types now have TypeAlias return type to avoid mypy
    errors (#&#8203;671 <https://github.com/omni-us/jsonargparse/pull/671>__).
  • String parsing regressions (#&#8203;673 <https://github.com/omni-us/jsonargparse/pull/673>, #&#8203;674 <https://github.com/omni-us/jsonargparse/pull/674>).
  • Regression when using old CLI and inferring components from the local
    context (#&#8203;676 <https://github.com/omni-us/jsonargparse/pull/676>__).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/jsonargparse-4.x branch from a058b87 to 5be4bf2 Compare March 26, 2025 12:32
@renovate renovate bot changed the title Update dependency jsonargparse to v4.37.0 Update dependency jsonargparse to v4.38.0 Mar 26, 2025
@renovate renovate bot force-pushed the renovate/jsonargparse-4.x branch from 5be4bf2 to 77f6cea Compare April 29, 2025 06:49
@renovate renovate bot changed the title Update dependency jsonargparse to v4.38.0 Update dependency jsonargparse to v4.39.0 Apr 29, 2025
@renovate renovate bot force-pushed the renovate/jsonargparse-4.x branch from 77f6cea to 6a8d425 Compare May 16, 2025 07:03
@renovate renovate bot changed the title Update dependency jsonargparse to v4.39.0 Update dependency jsonargparse to v4.40.0 May 16, 2025
@renovate renovate bot force-pushed the renovate/jsonargparse-4.x branch 2 times, most recently from 85dba8c to 869c2bb Compare July 24, 2025 08:41
@renovate renovate bot changed the title Update dependency jsonargparse to v4.40.0 Update dependency jsonargparse to v4.40.1 Jul 24, 2025
@renovate renovate bot force-pushed the renovate/jsonargparse-4.x branch from 869c2bb to f6d6484 Compare August 6, 2025 05:22
@renovate renovate bot changed the title Update dependency jsonargparse to v4.40.1 Update dependency jsonargparse to v4.40.2 Aug 6, 2025
@renovate renovate bot force-pushed the renovate/jsonargparse-4.x branch from f6d6484 to ee6ad13 Compare September 7, 2025 23:06
@renovate renovate bot changed the title Update dependency jsonargparse to v4.40.2 Update dependency jsonargparse to v4.41.0 Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants