-
Notifications
You must be signed in to change notification settings - Fork 77
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
dialects: (stencil) add StencilType constraints #3254
Conversation
stencil.StencilTypeConstr, | ||
) and isattr( | ||
el_type := field_t.element_type, | ||
AnyTensorTypeConstr | AnyMemRefTypeConstr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the only kind of functional change, splitting the check into two, it should still be equivalent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for doing this
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3254 +/- ##
=======================================
Coverage 89.92% 89.92%
=======================================
Files 441 441
Lines 55420 55430 +10
Branches 8643 8644 +1
=======================================
+ Hits 49835 49846 +11
Misses 4158 4158
+ Partials 1427 1426 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I think we should try to follow this on the other dialects later on
This adds some constraint constants and a new `.constr` helper to construct parametrized constraints for stencil types. Pyright errors 143 -> 133
This adds some constraint constants and a new
.constr
helper to construct parametrized constraints for stencil types. Pyright errors 143 -> 133