Update dependency jsonargparse to v4.43.0 #368
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==4.36.0->==4.43.0Release Notes
omni-us/jsonargparse (jsonargparse)
v4.43.0Compare Source
Added
^^^^^
from config (
#​800 <https://github.com/omni-us/jsonargparse/pull/800>__).Fixed
^^^^^
version actions and subcommands (
#​787 <https://github.com/omni-us/jsonargparse/pull/787>__).Unionwith path type and non-path value incorrectly dumped as string(
#​789 <https://github.com/omni-us/jsonargparse/pull/789>__).Literalstrings (#​790 <https://github.com/omni-us/jsonargparse/pull/790>__).omegaconf_absolute_to_relative_pathsnot taking effect afterparsing once (
#​805 <https://github.com/omni-us/jsonargparse/pull/805>__).Changed
^^^^^^^
parse_optionals_as_positionalsandapplied_instantiation_linksnolonger marked as experimental (
#​788 <https://github.com/omni-us/jsonargparse/pull/788>__).Pathclass fromjsonargparsetojsonargparse.typing(#​792 <https://github.com/omni-us/jsonargparse/pull/792>__).(
#​793 <https://github.com/omni-us/jsonargparse/pull/793>__).jsonargparse.*modules now use Python 3.9+ syntax (#​798 <https://github.com/omni-us/jsonargparse/pull/798>__).Deprecated
^^^^^^^^^^
Path.__call__is deprecated and will be removed in v5.0.0. Use theabsoluteorrelativeproperties instead (#​794 <https://github.com/omni-us/jsonargparse/pull/794>__).strip_metais deprecated and will be removed in v5.0.0. Instead use.clone(with_meta=False)(#​795 <https://github.com/omni-us/jsonargparse/pull/795>__).compose_dataclassesis deprecated and will be removed in v5.0.0. There isno direct replacement, whoever is interested can copy the code (
#​796 <https://github.com/omni-us/jsonargparse/pull/796>__).dict_to_namespaceis deprecated and will be removed in v5.0.0. Noreplacement is provided because blindly converting a dictionary to a namespace
may not yield the same results as using a parser, which could lead to
confusion (
#​797 <https://github.com/omni-us/jsonargparse/pull/797>__).v4.42.0Compare Source
Added
^^^^^
set_parsing_settingsnow supports settingallow_py_filesto enablestubs resolver searching in
.pyfiles in addition to.pyi(#​770 <https://github.com/omni-us/jsonargparse/pull/770>__).#​775 <https://github.com/omni-us/jsonargparse/pull/775>__).BaseModelsubclasses (#​781 <https://github.com/omni-us/jsonargparse/pull/781>__).Optional[Data],Union[Data1, Data2](#​783 <https://github.com/omni-us/jsonargparse/pull/783>__).set_parsing_settingsnow supportsomegaconf_absolute_to_relative_pathsto enable backward compatibility of
omegaconf+parser mode by convertingabsolute paths to relative in interpolations (
#​774 <https://github.com/omni-us/jsonargparse/pull/774>__).Fixed
^^^^^
#​770 <https://github.com/omni-us/jsonargparse/pull/770>__).dataclasswith default failing whenvalidate_defaults=True(#​771 <https://github.com/omni-us/jsonargparse/pull/771>__).(
#​772 <https://github.com/omni-us/jsonargparse/pull/772>__).omegaconf+parser mode failing when there areinf,-infornanvalues (
#​773 <https://github.com/omni-us/jsonargparse/pull/773>__).savewithmultifile=Truenot saving separate subconfigs for items in alist (
#​779 <https://github.com/omni-us/jsonargparse/pull/779>__).omegaconfparser mode failing on spawned processes (#​784 <https://github.com/omni-us/jsonargparse/pull/784>__).v4.41.0Compare Source
Added
^^^^^
#​753 <https://github.com/omni-us/jsonargparse/pull/753>__).#​758 <https://github.com/omni-us/jsonargparse/pull/758>__).ActionFailfor arguments that should fail parsing with a given errormessage (
#​759 <https://github.com/omni-us/jsonargparse/pull/759>__).omegaconf+parser mode that supports variable interpolationand resolving across configs and command line arguments. Depending on
community feedback, in v5.0.0 this new mode could replace the current
omegaconfmode, introducing a breaking change (#​765 <https://github.com/omni-us/jsonargparse/pull/765>__).Fixed
^^^^^
KEYWORD_ONLYparameters now correctly use--flagstyle (#​756 <https://github.com/omni-us/jsonargparse/pull/756>__).#​760 <https://github.com/omni-us/jsonargparse/pull/760>__).default_envis true (#​763 <https://github.com/omni-us/jsonargparse/pull/763>__).parse_objectnot parsing correctly configs (#​765 <https://github.com/omni-us/jsonargparse/pull/765>__).Changed
^^^^^^^
#​752 <https://github.com/omni-us/jsonargparse/pull/752>__).YAMLcomments feature is now implemented in a separate class to allowbetter support for custom help formatters without breaking the comments (
#​754 <https://github.com/omni-us/jsonargparse/pull/754>__).ruyamlwithruamel.yaml(
#​768 <https://github.com/omni-us/jsonargparse/pull/768>__).Deprecated
^^^^^^^^^^
DefaultHelpFormatter.*_yaml*_comment*methods are deprecated and will beremoved in v5.0.0. This logic has been moved to a new private class
YAMLCommentFormatter. If deemed necessary, this class might be made publicin the future (
#​754 <https://github.com/omni-us/jsonargparse/pull/754>__).ruyamloptional dependency is deprecated and will be removed inv5.0.0. Instead use the
ruameloptional dependency (#​768 <https://github.com/omni-us/jsonargparse/pull/768>__).v4.40.2Compare Source
Fixed
^^^^^
#​743 <https://github.com/omni-us/jsonargparse/pull/743>__).#​746 <https://github.com/omni-us/jsonargparse/pull/746>__).#​749 <https://github.com/omni-us/jsonargparse/pull/749>__).without-future-annotationstest not included in local coverage (#​751 <https://github.com/omni-us/jsonargparse/pull/751>__).v4.40.1Compare Source
Fixed
^^^^^
print_shtabincorrectly parsed from environment variable (#​726 <https://github.com/omni-us/jsonargparse/pull/726>__).adapt_class_typeused a locally definedpartial_instancewrapperfunction that is not pickleable (
#​728 <https://github.com/omni-us/jsonargparse/pull/728>__).#​736 <https://github.com/omni-us/jsonargparse/pull/736>__).typeshed-client(#​740 <https://github.com/omni-us/jsonargparse/pull/740>__).docstring-parserto avoid deprecation warnings(
#​741 <https://github.com/omni-us/jsonargparse/pull/741>__).v4.40.0Compare Source
Added
^^^^^
auto_parserfunction for convenience and more visibility of thecapture_parserfeature (#​721 <https://github.com/omni-us/jsonargparse/pull/721>__).Fixed
^^^^^
set_parsing_settings(validate_defaults=True)fails when the parser has aconfig action (
#​718 <https://github.com/omni-us/jsonargparse/pull/718>__).skip_link_targets=Trueandtarget being an entire required dataclass (
#​717 <https://github.com/omni-us/jsonargparse/pull/717>__).TypedDictvalues not validated when types are forward references (#​722 <https://github.com/omni-us/jsonargparse/pull/722>__).inspect.signatureavailableleading to missing parameter defaults (
#​724 <https://github.com/omni-us/jsonargparse/pull/724>__).Changed
^^^^^^^
(
#​682 <https://github.com/omni-us/jsonargparse/pull/682>__).Deprecated
^^^^^^^^^^
LoggerPropertyis deprecated and will be removed in v5.0.0. There is noreplacement since jsonargparse is not a logging library. A similar class can
be found in
reconplogger(#​719 <https://github.com/omni-us/jsonargparse/pull/719>__).namespace_to_dictis deprecated and will be removed in v5.0.0. Instead use.clone().as_dict()or.as_dict()(#​720 <https://github.com/omni-us/jsonargparse/pull/720>__).v4.39.0Compare Source
Added
^^^^^
shtabhint for positionals in bash now includes the argument name (#​699 <https://github.com/omni-us/jsonargparse/pull/699>__).shtabsupport for optionals parsed as positionals (#​700 <https://github.com/omni-us/jsonargparse/pull/700>__).auto_clinow supports class@property(#​701 <https://github.com/omni-us/jsonargparse/pull/701>__).inspect.signaturefails(
#​698 <https://github.com/omni-us/jsonargparse/pull/698>__).#​711 <https://github.com/omni-us/jsonargparse/pull/711>__).instantiation links (
#​716 <https://github.com/omni-us/jsonargparse/pull/716>__).Changed
^^^^^^^
Nonedefault no longer skipped whenfail_untyped=True(#​697 <https://github.com/omni-us/jsonargparse/pull/697>__).config_read_modeanddocstring_parseoptions can now be set usingset_parsing_settings(#​712 <https://github.com/omni-us/jsonargparse/pull/712>__).Fixed
^^^^^
ActionParsernot updatingdestof groups for instantiation (#​707 <https://github.com/omni-us/jsonargparse/pull/707>__).#​709 <https://github.com/omni-us/jsonargparse/pull/709>__).#​710 <https://github.com/omni-us/jsonargparse/pull/710>__).Deprecated
^^^^^^^^^^
get_config_read_mode,set_config_read_modeandset_docstring_parse_optionsare deprecated and will be removed in v5.0.0.Instead of
set_config_read_modeandset_docstring_parse_optionsuseset_parsing_settings. There will be no replacement forget_config_read_modesince this is considered internal (#​712 <https://github.com/omni-us/jsonargparse/pull/712>__).v4.38.0Compare Source
Added
^^^^^
shtabcompletion ofLiteraltypes (#​693 <https://github.com/omni-us/jsonargparse/pull/693>__).#​692 <https://github.com/omni-us/jsonargparse/pull/692>__).Changed
^^^^^^^
validatenow checks values before required so that errors related to wronglevel in a config are easier to understand (
#​681 <https://github.com/omni-us/jsonargparse/pull/681>__).add_argumentof a positional and providingdefaultnow raises an error(
#​694 <https://github.com/omni-us/jsonargparse/pull/694>__).Fixed
^^^^^
add_class_argumentswith dashes in thenested_keyfail to instantiate(
#​679 <https://github.com/omni-us/jsonargparse/pull/679>__).#​686 <https://github.com/omni-us/jsonargparse/pull/686>__).--print_shtab.add_argumentraises error when type is assigned withaction=None(
#​687 <https://github.com/omni-us/jsonargparse/pull/687>__).shtabfailing when parser has positional arguments (#​693 <https://github.com/omni-us/jsonargparse/pull/693>__).v4.37.0Compare Source
Added
^^^^^
ArgumentParserto customizeadd_argument(#​661 <https://github.com/omni-us/jsonargparse/pull/661>__).Fixed
^^^^^
#​662 <https://github.com/omni-us/jsonargparse/pull/662>__).#​667 <https://github.com/omni-us/jsonargparse/pull/667>__).#​668 <https://github.com/omni-us/jsonargparse/pull/668>__).TypeAliasreturn type to avoid mypyerrors (
#​671 <https://github.com/omni-us/jsonargparse/pull/671>__).#​673 <https://github.com/omni-us/jsonargparse/pull/673>,#​674 <https://github.com/omni-us/jsonargparse/pull/674>).CLIand inferring components from the localcontext (
#​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.
This PR was generated by Mend Renovate. View the repository job log.