-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: documentation rendering issue for functions using typing overloads #37239
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
@shaido987 thanks a lot for the report. Those overloads should indeed not be shown. This seems to be a bug in sphinx, see sphinx-doc/sphinx#7785 In general, also see #33025 for showing type annotations in the docs or not. |
Thanks @shaido987 we were aware of this, see #36475 (comment), but that is obviously not so visible as a dedicated issue. But at the same time, i'm also happy to close this as it is a sphinx issue. |
The sphinx bug has been fixed in sphinx 3.3, so the latest docs also show this correctly now, see eg https://pandas.pydata.org/pandas-docs/version/1.2.0/reference/api/pandas.concat.html vs https://pandas.pydata.org/pandas-docs/version/1.1.0/reference/api/pandas.concat.html So I think we can close it here. |
Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.concat.html
Documentation problem
This is how the method header looks for concat:
For comparison, this is merge:
As can be seen above, concat keeps the type information and there are two entries (likely due to the different output types).
I'm not sure why this occurs, but there are several overloaded methods in the code which could be related:
pandas/pandas/core/reshape/concat.py
Lines 40 to 83 in 54fa3da
The text was updated successfully, but these errors were encountered: