-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Some [source] links in the documentation point to _decorators.py #23046
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
Looks like in Line 572 in e510b1a
we call I'm not sure whether the fix is to update |
Now that I understand the problem, using |
This may have some other benefits as well like improved tracebacks. Not sure if we've ever done an audit of decorators in the code base to see what is using wraps or not but would be interesting |
I vaguely recalled a discussion about functools.wraps breaking something.
Perhaps I'm thinking of #13875
(something doesn't work properly on Python 2, which we don't care about
much these days).
…On Mon, Oct 8, 2018 at 1:32 PM William Ayd ***@***.***> wrote:
Now that I understand the problem, using functools.wraps definitely seems
like a way to go.
This may have some other benefits as well like improved tracebacks. Not
sure if we've ever done an audit of decorators in the code base to see what
is using wraps or not but would be interesting
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23046 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIpoU5_q5Ja9Mve5GAokKQ7YxWaxNks5ui5pSgaJpZM4XNQK2>
.
|
Just a comment on this and my PR: the case was that the decorator used in this case was already using |
In the Pandas documentation pages, some [source] links of the functions don't point to the actual implementation of the function, but to
pandas/util/_decorators.py
, presumably because some of the decorators there have been used on the function in question and this messes up the doc generation somehow.For an example, see the documentation of DataFrame.astype. I'm not sure if this is a systematic problem or if it applies to just this one case.
The text was updated successfully, but these errors were encountered: