Skip to content

Apply pyupgrade jsonargparse.* modules to use Python 3.9+ syntax#798

Merged
mauvilsa merged 2 commits into
mainfrom
pyupgrade-py39
Oct 31, 2025
Merged

Apply pyupgrade jsonargparse.* modules to use Python 3.9+ syntax#798
mauvilsa merged 2 commits into
mainfrom
pyupgrade-py39

Conversation

@mauvilsa

Copy link
Copy Markdown
Owner

What does this PR do?

Ran pyupgrade --py39-plus $(ls jsonargparse/*.py | grep -v deprecated) and then manual fixes.

Before submitting

  • Did you read the contributing guideline?
  • [n/a] Did you update the documentation? (readme and public docstrings)
  • Did you write unit tests such that there is 100% coverage on related code? (required for bug fixes and new features)
  • Did you verify that new and existing tests pass locally?
  • Did you make sure that all changes preserve backward compatibility?
  • Did you update the CHANGELOG including a pull request link? (not for typos, docs, test updates, or minor internal changes/refactors)

@mauvilsa mauvilsa added the refactor Improvements to the quality of the code label Oct 31, 2025
@codecov

codecov Bot commented Oct 31, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5bfc380) to head (66f2d98).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #798   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           23        23           
  Lines         7085      7094    +9     
=========================================
+ Hits          7085      7094    +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud

Copy link
Copy Markdown

@mauvilsa
mauvilsa merged commit 791c065 into main Oct 31, 2025
31 checks passed
@mauvilsa
mauvilsa deleted the pyupgrade-py39 branch October 31, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Improvements to the quality of the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant