-
-
Notifications
You must be signed in to change notification settings - Fork 166
Attributes initialized as None not linked in class overview #14
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
Comments
Is this fixed? it seems the link is there on the live docs. But I don't understand why you want to link to an attribute's docs if that attribute is None, and hence their docs are uninformative. Then again, I don't know why you want to autogenerate such docs. This could be fixed, I think, by using a sentinel other than None in the code, but I'm not entirely convinced that's useful to the user of the docs... |
@jorisvandenbossche, I'm closing this. Reopen if it's still an issue. |
Sorry for the late reply. I am not sure this is fixed, but should take the time to look more in detail again. The reason you don't see it anymore in the current docs is because I added a hack to our vendored numpydoc version to silence the warnings .. (pandas-dev/pandas@70c9d31)
You are fully correct that the current doc page on eg Index.name (http://pandas-docs.github.io/pandas-docs-travis/generated/pandas.Index.name.html#pandas.Index.name) is completely uninformative. But the main reason I opened this issue is because the previous situation was also annoying: it raised warnings in the doc build and It might also be that this 'uninformativeness' of the doc page could be solved (as the Index.name page could have some useful information listed there, I am just not sure if it is that easy to give a docstring to such an attribute). Because |
but if you describe it in the class docstring you will at least get that
description in the class. I don't see how then also linking to a blank page
helps!
|
We experience this issue in the pandas docs (pandas-dev/pandas#6100).
See for example the docstring page for the
Index
class: http://pandas.pydata.org/pandas-docs/dev/generated/pandas.Index.html. In the list of attributes, at the end, there are some attributes that are not linked to their respective pages.Eg
Index.name
, while this page does exist (http://pandas.pydata.org/pandas-docs/dev/generated/pandas.Index.name.html).This happens for all the attributes that are initialized as None:
The text was updated successfully, but these errors were encountered: