-
Notifications
You must be signed in to change notification settings - Fork 17
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
Type issues when using pyo3 function signatures #82
Comments
I stumbled on the same problem. As my functions are defined in an |
In my experience, |
But in this case putting it first gives no types at all. |
Also in case of an |
Hello,
I faced an issue when using the generator together with pyo3 function signatures and Optional values. If I add the generator macro at the bottom I get useful types, but the optional arguments are missing a default value. For example this generates
this
However this then throws an error in python when not specifiying all optional arguments. If I use the generator macro at the top the signature is fine, but the types are all gone:
The text was updated successfully, but these errors were encountered: