Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-112139: Addinspect.Signature.format and use it inpydoc#112143
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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, it's great this is relatively simple to implement.
Should we make this a public, supported feature ofinspect.signature? It may be useful for users other thanpydoc. For example, we could add a__format__. Then perhaps something likef"{sig:78p}" could be used.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Yes, I think we should add a new method called |
pretty toinspect.Signature and use it inpydocinspect.Signature.format and use it inpydocThere 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.
Thank you! Sorry I forgot about reviewing this PR.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Wow, this is going to be a big quality-of-life improvement. Thanks@sobolevn and@JelleZijlstra! :D |
…python#112143)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…python#112143)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
What do you think about
__str__with a parameter? Or should we add an alias for this, likedef to_string(self, *, pretty)?