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
Currently the deprecation warning is only shown for kwargs. I think that doing the same for args would be interesting (either by config or by default).
Wouldn't it be more consistent to display the deprecation at the first call? The deprecated args have actually been called. Currently the output is
>>> multiply(1,2,3)
42
>>> multiply(a=1,b=2,c=3)
<stdin>:1: DeprecationWarning: Call to deprecated Parameter a. -- Deprecated since v4.0.
<stdin>:1: DeprecationWarning: Call to deprecated Parameter b. -- Deprecated since v3.0.
42
The text was updated successfully, but these errors were encountered:
Currently the deprecation warning is only shown for kwargs. I think that doing the same for args would be interesting (either by config or by default).
Wouldn't it be more consistent to display the deprecation at the first call? The deprecated args have actually been called. Currently the output is
The text was updated successfully, but these errors were encountered: