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
autodoc shows undecorated signature for decorated functions #7650
Comments
Fix #7650: autodoc: undecorated signature is shown for decorated functions
I would argue that this is actually not a bug, and the old behavior is usually better than the new one, especially when In fact,
To see that this is the common pattern, one can search for With the current "bugfix", all decorated function will be rendered with I think the solution can be the following:
This problem has already puzzled other projects, such as optuna/optuna#1353, which actually called this bugfix as a bug. |
Thank you for comment. I understand this change causes trouble. I agree to revert it ASAP.
I don't think
I don't think the decorators not modifying signature are "in general". But I agree they are major. So it would be better to behave like before by default. And it's perfect if we can change the behavior optionally. |
Describe the bug
autodoc shows undecorated signature for decorated functions
To Reproduce
This is converted to
foo(x, y, z)
.Expected behavior
The function
foo
should be shown asfoo()
. That is what users see.Your project
No
Screenshots
No
Environment info
Additional context
No
The text was updated successfully, but these errors were encountered: