Skip to content
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

The Returns section #183

Open
fredrik-1 opened this issue Jun 28, 2018 · 5 comments
Open

The Returns section #183

fredrik-1 opened this issue Jun 28, 2018 · 5 comments

Comments

@fredrik-1
Copy link

What are the expected behavior in the return section when the output variable name is not given?

In the documentation it is written that the variable name is optional and that you can write for example

Returns
--------
int

That is true but the int became bold and for example

Returns
--------
`axes.Axes`

doesn't get formatted into a link and looks ugly.

Is this the intended behavior or is it a bug in matplotlib (that I have worked with) or numpy docs?

Are there any method to get nice formatting in the Returns section without having to came up with an output variable name?

@jnothman
Copy link
Member

jnothman commented Jun 28, 2018 via email

@fredrik-1
Copy link
Author

I found #175. Shouldn't that be a fix for this issue?

@anntzer
Copy link
Contributor

anntzer commented Nov 8, 2018

@jnothman I have a long-term todo of rewriting numpydoc to work by parsing the original input into a docutils tree (using the default parser), then do a transform on that tree. At that point it's purely conceptual but would you be interested in such an approach?

@jnothman
Copy link
Member

jnothman commented Nov 8, 2018 via email

@anntzer
Copy link
Contributor

anntzer commented Nov 8, 2018

Bumping it on my todo list...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants