-
Notifications
You must be signed in to change notification settings - Fork 3
Make MethodType explicit #582
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
Conversation
|
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
src/kirin/dialects/func/attrs.py
Outdated
| MethodType = types.Generic( | ||
| Method, types.TypeVar("Params", types.Tuple), types.TypeVar("Ret") | ||
| ) | ||
| # TypeofMethodType = types.PyClass[Method] |
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.
Can we get rid of the Signature attribute too? Now you have a function type we can just use that to replace the Signature attribute
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.
that will be breaking tho because it requires to remove the trait too
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.
my original thought is that trait change can go together with your refactor on stage method, and make this PR simpler
Roger-luo
left a comment
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 think should be good in general, need to fix a few linting bugs I had in #580
fixed type hint issue |
|
Oh nice, glad you figure it out! |
This PR address #579 and contain partly of #580