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

core: default props should always be added #3308

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

alexarice
Copy link
Collaborator

I messed up slightly on the default properties. It seems that the default should be inserted even when using the generic syntax. I've moved the default logic to __post_init__ so that it triggers for all Operations and added a test to clarify.

@alexarice alexarice added bug Something isn't working core xDSL core (ir, textual format, ...) labels Oct 16, 2024
@alexarice alexarice self-assigned this Oct 16, 2024
@alexarice alexarice requested a review from AntonLydike October 16, 2024 13:57
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.03%. Comparing base (543bc95) to head (97f4e6a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3308   +/-   ##
=======================================
  Coverage   90.03%   90.03%           
=======================================
  Files         445      445           
  Lines       56166    56170    +4     
  Branches     5390     5390           
=======================================
+ Hits        50571    50575    +4     
  Misses       4179     4179           
  Partials     1416     1416           

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

Copy link
Collaborator

@AntonLydike AntonLydike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@alexarice alexarice merged commit bf7231d into main Oct 16, 2024
14 checks passed
@alexarice alexarice deleted the alexarice/default-fix branch October 16, 2024 18:56
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
I messed up slightly on the default properties. It seems that the
default should be inserted even when using the generic syntax. I've
moved the default logic to `__post_init__` so that it triggers for all
`Operation`s and added a test to clarify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core xDSL core (ir, textual format, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants