Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of skip_defaults #1213

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

alicederyn
Copy link
Collaborator

Pull Request Checklist

Description of PR
Currently, we are setting both skip_defaults and exclude_unset when we call Pydantic's json method. The former was made a (deprecated) alias for the latter in pydantic/pydantic#915, released as part of v1.0; we have a minimum requirement of v1.7.

This PR removes the redundant skip_defaults parameter.

skip_defaults is an alias of exclude_unset, which we are already setting.

Signed-off-by: Alice Purcell <alicederyn@gmail.com>
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.0%. Comparing base (d553546) to head (d3751f5).
Report is 201 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1213     +/-   ##
=======================================
+ Coverage   81.7%   86.0%   +4.2%     
=======================================
  Files         54      60      +6     
  Lines       4208    4040    -168     
  Branches     889     840     -49     
=======================================
+ Hits        3439    3475     +36     
+ Misses       574     392    -182     
+ Partials     195     173     -22     

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

@elliotgunton elliotgunton added semver:patch A change requiring a patch version bump type:task A general task labels Sep 27, 2024
@elliotgunton elliotgunton enabled auto-merge (squash) September 27, 2024 13:13
@elliotgunton elliotgunton merged commit feede18 into argoproj-labs:main Sep 27, 2024
20 checks passed
@alicederyn alicederyn deleted the remove.skip.defaults branch September 27, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants