-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] DOC kwonly section in whatsnew #17059
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you like to include other deprecations in a separate section here as well?
I'm happy with this anyway.
doc/whats_new/v0.23.rst
Outdated
arguments (i.e. using the `param=value` syntax) instead of positional. To | ||
ease the transition, a `FutureWarning` is raised if a keyword-only parameter | ||
is used as positional. In version 0.25, these parameters will be strictly | ||
keyword-only, and a syntax error will be raised. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly it's a TypeError
:
In [1]: def f(a, *, b):
...: pass
...:
In [2]: f(1, 3)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-f0d8c2b0eb56> in <module>
----> 1 f(1, 3)
TypeError: f() takes 1 positional argument but 2 were given
pinging #17010 just to have a list on that issue. |
What deprecations are you referring to? |
I think we have 5 other deprecations of some input params and attributes in this changelog, I meant to put them all together, but no big feelings there. |
Sort of related to #17057
Addresses #17015 (comment)
CC @adrinjalali @thomasjpfan @rth @cmarmo