-
Notifications
You must be signed in to change notification settings - Fork 18
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 |
I have a refactor in #125 that would make fixing this much easier. What can I do to get some eyes on that? |
Sorry for late response these days - we are definitely continuing to maintain this repository (as we are using in our production codebase), but we don't have much time these days. Sorry again for the inconvenience, but please be patient until we get on your PR. |
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: