You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[autodoc] please avoid evaluating default function arguments #2844
Activity
peterjc commentedon Sep 24, 2018
This looks like a duplicate of #759 to me.
tgandor commentedon Feb 12, 2020
@mitya57 - this example is cool, however the function is wrong ;) The default
nowwould be only evaluated at time of function definition.mitya57 commentedon Feb 12, 2020
I know, I said exactly that in the linked downstream bug.
tk0miya commentedon Feb 13, 2020
I made a super experimental extension for this.

https://gist.github.com/4279adc2d6ff4da52ea73c18cfdd229a
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.
tk0miya commentedon Mar 6, 2021
Will be fixed by #8771. Closing.