-
Notifications
You must be signed in to change notification settings - Fork 16
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
inherit documentation of args and kwargs from sub-functions #22
Labels
Comments
This does sound pretty good. It looks like it should be compatible with our sphinx rtd implementation too, since we follow numpy conventions.
|
lukashergt
pushed a commit
to lukashergt/anesthetic
that referenced
this issue
Jul 11, 2019
* This addresses issue handley-lab#22 and provides an example of `docrep` in action: - `docrep` gets the parameters from the docstring of `samples.plot` and appends them to the parameters section in the docstring of `samples.plot_1d`. * `docrep` added to requirements.txt and requirements_minimal.txt for this.
5 tasks
|
5 tasks
5 tasks
5 tasks
This was referenced Oct 13, 2022
partially resolved by #239 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could docrep be potentially of interest for inheriting documentation of parameters from one function to another?
This could be the solution to avoiding copy-pasting of docs and to "good docs are better than no docs, but no docs are better than bad docs".
Example of a use-case:
Currently
samples.plot_1d
's docstring only informs about one argument:axes
. It might be helpful for the user to also see arguments going intosamples.plot
, though. In particular theplot_type
argument which is documented inplot
would be useful to know about inplot_1d
.The text was updated successfully, but these errors were encountered: