-
Notifications
You must be signed in to change notification settings - Fork 62
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
Awkward pybind signatures #1666
Comments
Afaik this is an effect of Pybind. The issue on this is still open: pybind/pybind11#2619 |
That issue seems to be about the docstring generation. I can't find where it mentions which arg/kwarg overloads are actually accepted by |
I understood that the docstring generation is a reflection of the way Pybind implements function overloads, it which case it always generates a But I see now that you're asking why |
Describe the bug
arbor.mechanism
's set of accepted arguments are a bit awkward because the signature with positional arguments has anonymous parameter names. It bindsarg0
instead ofname
:I suppose this occurs for all functions with similar signatures?
Shouldn't the signatures be:
I can do
arbor.mechanism("name", {})
andarbor.mechanism(name="name", params={})
andarbor.mechanism("name")
but notarbor.mechanism(name="name")
The text was updated successfully, but these errors were encountered: