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

Define Configuration as a dataclass #141

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Define Configuration as a dataclass #141

merged 1 commit into from
Nov 22, 2024

Conversation

dlax
Copy link
Member

@dlax dlax commented Nov 19, 2024

No description provided.

@dlax dlax marked this pull request as ready for review November 19, 2024 10:21
@dlax dlax requested review from pgiraud and l00ptr November 19, 2024 10:21
We need to hack a bit in __setattr__() to preserve the current behaviour
but make dataclass fields initialization working.

We also add a unit test to check the behaviour when trying to change dataclass
fields, making sure they do not end up in 'entries'.
@dlax dlax merged commit f9fa11b into dalibo:master Nov 22, 2024
4 checks passed
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.61%. Comparing base (a06e5cc) to head (f9fa11b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   97.53%   97.61%   +0.08%     
==========================================
  Files          10       10              
  Lines        1215     1214       -1     
==========================================
  Hits         1185     1185              
+ Misses         30       29       -1     

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


🚨 Try these New Features:

@dlax dlax deleted the dataclasses branch November 22, 2024 07:39
@pgiraud pgiraud mentioned this pull request Nov 26, 2024
13 tasks
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.

3 participants