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 error override for default usage in Parameter annotations #1278

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

elliotgunton
Copy link
Collaborator

Pull Request Checklist

Description of PR
Currently, when using the default attribute in Parameters (Parameter(default="x")) users can supress the error with the suppress_parameter_default_error experimental feature flag. If users have not updated their code (which is a very easy change) they will now get errors when upgrading Hera, the warning has been there for 2 minor versions and this is an experimental feature - we will be able to graduate it in the next version once this is released.

@elliotgunton elliotgunton added type:task A general task semver:minor A change requiring a minor version bump labels Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.2%. Comparing base (2f640b6) to head (94c4e36).
Report is 3 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1278   +/-   ##
=====================================
  Coverage   86.2%   86.2%           
=====================================
  Files         60      60           
  Lines       4113    4102   -11     
  Branches     660     657    -3     
=====================================
- Hits        3547    3538    -9     
+ Misses       393     392    -1     
+ Partials     173     172    -1     

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

@elliotgunton elliotgunton changed the title Remove param default Remove override for default usage in Parameter annotations Nov 27, 2024
@elliotgunton elliotgunton enabled auto-merge (squash) November 27, 2024 12:26
* You must now always use a Python default

Signed-off-by: Elliot Gunton <[email protected]>
@elliotgunton elliotgunton merged commit 133bc54 into main Nov 27, 2024
25 checks passed
@elliotgunton elliotgunton deleted the remove-param-default branch November 27, 2024 12:39
@elliotgunton elliotgunton added type:informational Provides information or notice to the community and removed type:task A general task labels Dec 3, 2024
@elliotgunton elliotgunton changed the title Remove override for default usage in Parameter annotations Remove error override for default usage in Parameter annotations Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:informational Provides information or notice to the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input Parameter annotations should only be able to set default via standard Python
3 participants