-
Notifications
You must be signed in to change notification settings - Fork 792
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
Case for REQUIRED_ARGUMENT_AFTER_OPTION #2925
Comments
@ritchie46 Could you please also paste the full signature of such a |
Isn't that the behavior you get when you put the argument into I.e. the two cases are
Both cases are still supported, PyO3 just now wants the |
Right, I realized later. Maybe defaulting to the any of the two (I oreythw first) might save some proc macro headers. In any case, that's only ergonomics. Thanks for the clarification. |
For what it's worth, #2934 may help document this for future readers. |
Hi, while upgrading to
0.18
in polars, I saw this warning:We have a lot of types in polars where an optional
None | int
value is valid. There are passed topyo3
asNone
in such a case.We don't use it as non-required argument. Could there be a case where the type
Option<T>
is still allowed, but it does not mean that the argument can be elided?Maybe a
required_all
proc macro?The text was updated successfully, but these errors were encountered: