-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] please avoid evaluating default function arguments #2844
Comments
This looks like a duplicate of #759 to me. |
@mitya57 - this example is cool, however the function is wrong ;) The default |
I know, I said exactly that in the linked downstream bug. |
I made a super experimental extension for this. I'd like to know side effect to enable this by default. So it might be needed to add a new option to enable it. |
Will be fixed by #8771. Closing. |
Currently if Sphinx encounters a function like this:
It generates output like this:
I think it is confusing and should be avoided.
(Originally reported at Debian #833820.)
The text was updated successfully, but these errors were encountered: