-
Notifications
You must be signed in to change notification settings - Fork 85
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: (builtin) make FloatAttr a TypedAttribute #3488
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3488 +/- ##
=======================================
Coverage 90.31% 90.32%
=======================================
Files 462 462
Lines 58040 58076 +36
Branches 5563 5565 +2
=======================================
+ Hits 52419 52455 +36
Misses 4188 4188
Partials 1433 1433 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Would it be worth factoring out a |
74635f8
to
31546f7
Compare
I've refactored and rebased on top of #3490 |
xdsl/parser/base_parser.py
Outdated
def parse_optional_float( | ||
self, | ||
*, | ||
allow_negative: bool = False, |
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.
I can imagine this being quite confusing, let's drop the default argument for now?
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.
It was copied off the above function for integers I think, but sounds like a good idea
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.
It seems I copied poorly and the rest have a default value of True, would that be preferred or still no default?
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.
I have a slight preference towards default True
Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
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!
Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
Pretty much as the title says.