Skip to content

Support for *args, positional-only parameters given positionally and function/method groups instantiated as callables - #986

Merged
mauvilsa merged 3 commits into
mainfrom
issue-514-var-positional-args
Sep 24, 2026
Merged

mauvilsa merged 3 commits into
mainfrom
issue-514-var-positional-args

Fail on argparse unsupported */+ positionals and subcommand

4e41bc2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 24, 2026 in 42s

Annotations

Check warning on line 65 in jsonargparse_tests/test_core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unify assertion argument order in this file; both "actual first" and "expected first" conventions are used.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaDHuIHbZyITcfwkCSCn&open=AaDHuIHbZyITcfwkCSCn&pullRequest=986

Check failure on line 939 in jsonargparse/_parameter_resolvers.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaDHuH_UZyITcfwkCSCk&open=AaDHuH_UZyITcfwkCSCk&pullRequest=986

Check failure on line 1348 in jsonargparse/_parameter_resolvers.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaDHuH_UZyITcfwkCSCl&open=AaDHuH_UZyITcfwkCSCl&pullRequest=986

Check warning on line 39 in jsonargparse/_instantiation.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested conditional expression into an independent statement.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaDHuIEnZyITcfwkCSCm&open=AaDHuIEnZyITcfwkCSCm&pullRequest=986