-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-102378: don't bother stripping /
from __text_signature__
#102379
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
5403c68
to
9cc7663
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.
The feature itself and the implementation looks good to me! Thanks!
(The only thing that got me confused is that kind
is not an actual argument, but uses a clojure)
You will need a NEWS entry for this :) |
@sobolevn, is this really required? This PR touches a private function, that's used to handle a private attribute. This doesn't affect public interfaces or performance. Should be invisible for users (even among cpython developers)... |
Why not? :) Since some projects use |
Thanks! Added a NEWS entry. |
Misc/NEWS.d/next/Library/2023-03-03-19-53-08.gh-issue-102378.kRdOZc.rst
Outdated
Show resolved
Hide resolved
c909378
to
4705bfb
Compare
@sobolevn just a gentle ping that I think this is ready to merge now the NEWS entry is added? |
@JelleZijlstra can you please take a look as well? :) |
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.
Thanks, this seems like an improvement. Am I correct in thinking that this shouldn't affect the output of any public API?
I am inclined to not backport this as it doesn't fix a user-visible bug and might break users who use the private helper function.
The single usage of
Fully agree with this, I was not expecting this would warrant a backport. |
Just for posterity, this isn't expected to change any rules about what |
Closes #102378
I assume that it's ok to do this, because it's a private helper function. If not, please just close this!
inspect._signature_strip_non_python_syntax
doesn't need to strip/
#102378