-
Notifications
You must be signed in to change notification settings - Fork 0
PoC @alias annotation #27
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
base: main
Are you sure you want to change the base?
Conversation
cc. @eltoder |
As discussed in the upstream issue, this PR confirms that the |
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.
Seems reasonable!
alias_def = alias_def.replace("methoddef_name", | ||
"methoddef_alias") |
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 feels somewhat hacky, but I guess no more hacky than all the other times we're calling .replace()
on templates in clinic.py
:)
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.
Yeah, it is a bit hacky. We could add some assert
s, to make sure the code breaks sooner than later if the prototype template changes.
I'll add some guards and tests and move this upstream. |
As noted on the upstream issue, we need to do some more refactoring before we can finally upstream this. |
TODO:
See: python#113270