-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-86457: Fix signature for code.replace(). #23199
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
gh-86457: Fix signature for code.replace(). #23199
Conversation
54e0103
to
3844d93
Compare
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
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 has merge conflicts now.
When you're done making the requested changes, leave the comment: |
3844d93
to
72f8629
Compare
✅ Deploy Preview for python-cpython-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
72f8629
to
0dfd286
Compare
0dfd286
to
748a7e8
Compare
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 don't understand the clinic code, but the rest LGTM.
I will have a look, but it may take some days before I find time. Thanks for the ping, @serhiy-storchaka |
if self.forced_text_signature: | ||
add(self.forced_text_signature) | ||
else: | ||
add('(') |
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.
All following lines just increase indentation. GitHub is not good in showing such case.
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.
For the record, I plan to refactor the signature generation into a helper function. See #107623
It would be better if Argument Clinic could handle this by itself, without the need for the |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Also add support of @text_signature in Argument Clinic.. (cherry picked from commit 0e6e32f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-107744 is a backport of this pull request to the 3.12 branch. |
Also add support of @text_signature in Argument Clinic.. (cherry picked from commit 0e6e32f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-107746 is a backport of this pull request to the 3.11 branch. |
I am sorry for creating conflicts with your PR, but this PR was planned for backporting, and your refactoring seems is not purposed for backporting. |
No worries; I'll handle that :) |
https://bugs.python.org/issue42291
#86457