Skip to content

Dataclass-like types accept the same values whether or not added as a group - #952

Merged
mauvilsa merged 1 commit into
mainfrom
fix-dataclass-like-subclass-spec-asymmetry
Aug 11, 2026
Merged

Dataclass-like types accept the same values whether or not added as a group#952
mauvilsa merged 1 commit into
mainfrom
fix-dataclass-like-subclass-spec-asymmetry

Dataclass-like types accept the same values whether or not added as a…

693af19
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Aug 11, 2026 in 31s

Annotations

Check warning on line 564 in jsonargparse_tests/test_pydantic.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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

Check warning on line 889 in jsonargparse_tests/test_dataclasses.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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

Check warning on line 47 in jsonargparse_tests/test_paths.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=AZ_vSqckF7gugZUD0Pya&open=AZ_vSqckF7gugZUD0Pya&pullRequest=952

Check warning on line 271 in jsonargparse_tests/test_dataclasses.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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

Check warning on line 854 in jsonargparse_tests/test_dataclasses.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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

Check failure on line 379 in jsonargparse/_completions.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 1021 in jsonargparse_tests/test_dataclasses.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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

Check warning on line 1007 in jsonargparse_tests/test_dataclasses.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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

Check warning on line 1045 in jsonargparse_tests/test_dataclasses.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

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