Skip to content

Fix dump round-tripping, generic protocols, TypeVar types and extend subclass spec validation - #953

Merged
mauvilsa merged 2 commits into
mainfrom
fix-dump-roundtrip-and-type-resolution
Aug 12, 2026
Merged

Fix dump round-tripping, generic protocols, TypeVar types and extend subclass spec validation#953
mauvilsa merged 2 commits into
mainfrom
fix-dump-roundtrip-and-type-resolution

Fix dumping of instance import paths, secret masks, generic protocols…

8512e39
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Aug 12, 2026 in 38s

Annotations

Check warning on line 370 in jsonargparse_tests/test_typehints.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer the context manager form: wrap the raising code in "with pytest.raises(...)".

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

Check warning on line 381 in jsonargparse_tests/test_typehints.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer the context manager form: wrap the raising code in "with pytest.raises(...)".

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

Check failure on line 2197 in jsonargparse/_typehints.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 409 in jsonargparse_tests/test_typehints.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer the context manager form: wrap the raising code in "with pytest.raises(...)".

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