Skip to content

POC: docstring inheritance #31110

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

Closed
wants to merge 1 commit into from

Conversation

jbrockmendel
Copy link
Member

Proof of concept for automatically inheriting docstrings, so we dont have to use @Appender(parent_class.method.__doc__) quite so much.

This doesnt handle @Substitution. If we can make that work for the common case where we're just putting in the class name, we could get a lot less verbose.

xref #31095, #31060.

@WillAyd
Copy link
Member

WillAyd commented Jan 17, 2020

Looks nice though I am actually -1 on inheriting docstrings compared to simplifying the existing Appender / Substitution decorators. I suppose my main argument is that not everything really can be inherited (ex: we sometimes inherit but change signature or semantics) so would end up having to revert back to Appender / Substitution anyway in some cases

@jbrockmendel
Copy link
Member Author

Closing to clear the queue

@jbrockmendel jbrockmendel deleted the doc-inherit branch February 28, 2020 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants