> > 3. A related (I think) question. Example: > https://pytorch.org/docs/stable/nn.html#parameters We see that the > argument "data" has the type "Tensor", which is a link(!). > In the source code, they don't do anything special, the just say "data > (Tensor): ...". How did they do that? >
I think napoleon <https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html> might take care of it. numpydoc can also be configured to try to do this, though it might require a bit more manual configuration (and requires using numpy-style docstrings). Eric -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAGu2niU8O5XS%2BSfQfp5f%3DXn1z_S-5o%3DjEVpFtzbkLt4gDeYp0w%40mail.gmail.com.
