Update dependency jsonargparse to v4.47.0#368
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
a058b87 to
5be4bf2
Compare
5be4bf2 to
77f6cea
Compare
77f6cea to
6a8d425
Compare
85dba8c to
869c2bb
Compare
869c2bb to
f6d6484
Compare
f6d6484 to
ee6ad13
Compare
ee6ad13 to
2e2388c
Compare
2e2388c to
05c120c
Compare
05c120c to
3932f5b
Compare
3932f5b to
0a03bec
Compare
0a03bec to
9671f08
Compare
9671f08 to
70c2f58
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.47.0Release Notes
omni-us/jsonargparse (jsonargparse)
v4.47.0Compare Source
Added
^^^^^
shtabbash typehint completions forUnionandLiteral:choices for unions that also accept open values now require a prefix to be
completed, and literal booleans/
Nonenow complete asfalse/trueand
null(#​851 <https://github.com/omni-us/jsonargparse/pull/851>__).auto_clinow supports areturn_instanceparameter to instantiate classcomponents directly instead of exposing methods as subcommands (
#​855 <https://github.com/omni-us/jsonargparse/pull/855>__).ArgumentParser.get_completion_script(completion_type)public methodto generate completion scripts programmatically, and new
set_parsing_settings(add_print_completion_argument=...)setting andJSONARGPARSE_ADD_PRINT_COMPLETION_ARGUMENTenvironment variable to opt-inautomatic addition of
--print_completionwhenshtabis installed(
#​859 <https://github.com/omni-us/jsonargparse/pull/859>__).Fixed
^^^^^
nargs="*"ornargs="?"now correctly allowdefault values, matching standard argparse behavior (
#​846 <https://github.com/omni-us/jsonargparse/pull/846>__).-.5) not working (#​847 <https://github.com/omni-us/jsonargparse/pull/847>__).with the same name, fixing a failure during typed sub-default processing
(
#​853 <https://github.com/omni-us/jsonargparse/pull/853>__).--helpno longer fails withIndexErrorfor options without explicithelp text while keeping
argparsecompatibility forhelp=None(#​854 <https://github.com/omni-us/jsonargparse/pull/854>__).store_trueandstore_falsearguments now parse boolean environmentvariable values as
true/falseand raise a clear error for invalidvalues (
#​858 <https://github.com/omni-us/jsonargparse/pull/858>__).default_config_filesvalues for subcommands and nested subsubcommands(
#​862 <https://github.com/omni-us/jsonargparse/pull/862>__).omegaconf+incorrectly applied fordefault_config_files(#​865 <https://github.com/omni-us/jsonargparse/pull/865>__).ActionSubCommands.add_subcommand()missing from API reference(
#​863 <https://github.com/omni-us/jsonargparse/pull/863>__).Changed
^^^^^^^
jsonargparse_testswheel file for that (#​843 <https://github.com/omni-us/jsonargparse/pull/843>__).typeandactionis now allowed(
#​845 <https://github.com/omni-us/jsonargparse/pull/845>__).--print_shtabby default. Completion scriptgeneration now uses
shtab-*completion types, and whenget_completion_scriptis used the parser instance is invalidated forfurther use. A hidden
--print_shtabargument remains to guide users tothe new opt-in completion setting (
#​859 <https://github.com/omni-us/jsonargparse/pull/859>__).JSONARGPARSE_DEBUGcan only be enabled withtrue(case-insensitive)(
867 <https://github.com/omni-us/jsonargparse/pull/867>__).v4.46.0Compare Source
Added
^^^^^
#​817 <https://github.com/omni-us/jsonargparse/pull/817>__).Fixed
^^^^^
#​827 <https://github.com/omni-us/jsonargparse/pull/827>__).#​833 <https://github.com/omni-us/jsonargparse/pull/833>__).#​834 <https://github.com/omni-us/jsonargparse/pull/834>__).-(stdin) default(
#​837 <https://github.com/omni-us/jsonargparse/pull/837>__).#​839 <https://github.com/omni-us/jsonargparse/pull/839>__).v4.45.0Compare Source
Added
^^^^^
sub_configs=True, list of paths types cannow receive a file containing a list of paths (
#​816 <https://github.com/omni-us/jsonargparse/pull/816>__).FromConfigMixin.from_confignow supports subclasses (#​822 <https://github.com/omni-us/jsonargparse/pull/822>__).Fixed
^^^^^
#​824 <https://github.com/omni-us/jsonargparse/pull/824>__).not working correctly (
#​814 <https://github.com/omni-us/jsonargparse/pull/814>__).inheritance (
#​815 <https://github.com/omni-us/jsonargparse/pull/815>__).default_env=Trueconflicting withdefault_config_files(#​818 <https://github.com/omni-us/jsonargparse/pull/818>__).default_config_fileswith settings for multiple subcommands not workingcorrectly (
#​819 <https://github.com/omni-us/jsonargparse/pull/819>__).register_typenot checking that the given type is a class (#​820 <https://github.com/omni-us/jsonargparse/pull/820>__).Changed
^^^^^^^
paths like
'["PATH1",...]' | LIST_OF_PATHS_FILE | -(#​816 <https://github.com/omni-us/jsonargparse/pull/816>__).default_config_filesis now an error(
#​819 <https://github.com/omni-us/jsonargparse/pull/819>__).v4.44.0Compare Source
Fixed
^^^^^
stringified exception of an other subtype (
#​812 <https://github.com/omni-us/jsonargparse/pull/812>__).FromConfigMixinnot handling correctly required parameters (#​813 <https://github.com/omni-us/jsonargparse/pull/813>__).Changed
^^^^^^^
parser/subcommand the option was given to. Also suggests running
--helpfor the corresponding parser/subcommand (
#​809 <https://github.com/omni-us/jsonargparse/pull/809>__).yaml_commentsparameter ofArgumentParser.dumphas been renamed towith_commentsto allow future comments support of other formats (#​811 <https://github.com/omni-us/jsonargparse/pull/811>__).Deprecated
^^^^^^^^^^
ArgumentParser.default_metaproperty andwith_metaparameter ofArgumentParser.parse_*are deprecated and will be removed in v5.0.0.Instead use
.clone(with_meta=...)(#​810 <https://github.com/omni-us/jsonargparse/pull/810>__).yaml_commentsparameter ofArgumentParser.dumpis deprecated andwill be removed in v5.0.0. Use
with_commentsinstead (#​811 <https://github.com/omni-us/jsonargparse/pull/811>__).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.