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

Reject none values by default in Normalizers #371

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

zprobst
Copy link
Member

@zprobst zprobst commented Nov 21, 2024

Often times Normalizer classes need to have a straight None check to prevent any issues during normalization. Almost all normalizers would do this. This change makes it so that the default behavior is to reject none values unless the class opts into normalizing the value.

@zprobst zprobst requested a review from ccloes as a code owner November 21, 2024 15:35
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.93%. Comparing base (a290a63) to head (e93e535).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #371   +/-   ##
=======================================
  Coverage   97.93%   97.93%           
=======================================
  Files         147      147           
  Lines        5320     5325    +5     
=======================================
+ Hits         5210     5215    +5     
  Misses        110      110           
Flag Coverage Δ
3.10-macos-latest 97.89% <100.00%> (-0.02%) ⬇️
3.10-ubuntu-latest 97.89% <100.00%> (+<0.01%) ⬆️
3.10-windows-latest 97.85% <100.00%> (+<0.01%) ⬆️
3.11-macos-latest 97.91% <100.00%> (+<0.01%) ⬆️
3.11-ubuntu-latest 97.89% <100.00%> (+<0.01%) ⬆️
3.11-windows-latest 97.85% <100.00%> (+<0.01%) ⬆️
3.12-macos-latest 97.89% <100.00%> (-0.02%) ⬇️
3.12-ubuntu-latest 97.89% <100.00%> (+<0.01%) ⬆️
3.12-windows-latest 97.85% <100.00%> (+<0.01%) ⬆️
3.13-macos-latest 97.89% <100.00%> (-0.02%) ⬇️
3.13-ubuntu-latest 97.89% <100.00%> (+<0.01%) ⬆️
3.13-windows-latest 97.85% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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


🚨 Try these New Features:

@zprobst zprobst merged commit 1ec22d5 into main Nov 21, 2024
16 checks passed
@zprobst zprobst deleted the fix/normalizer-reject-none-by-default branch November 21, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants