-
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
Unable to specify keyword-only arguments #1025
Comments
Thank you for reporting! |
If nobody's already taken this one, I'll give it a try |
@dvermd please do! I'm happy to answer any questions and review your PR 👍 |
I'm thinking of replacing the booleans |
Sounds good
I think you're looking for |
Thanks.
The current code is already a state machine and I don't think abstracting it more is so meaningful. |
🌍 Environment
rustc --version
): rustc 1.44.1 (c7087fe00 2020-06-17)version = "0.x.y"
withgit = "https://github.com/PyO3/pyo3")?
: yes💥 Reproducing
Minimal reproduction:
This is valid and should be allowed. The arguments
a
andb
are keyword-only, which means that this function needs to be called assum(a=3, b=3)
.Compiling this produces the error:
The equivalent Python code that works with Python 3:
I think this is related to #790 and the subsequent changes made in #792.
The text was updated successfully, but these errors were encountered: