Open Tishj opened 1 month ago
Ah, looks like https://github.com/pybind/pybind11/pull/3402 fixes this if I read it correctly 👍
I think actually the problem is that py::arg(...)
should not be provided if the argument is py::args
Which makes some sense, but since we're making a definition, and for python you do add *args
explicitly, it feels counter-intuitive
I think a note about this on the docs would be helpful, I stumbled on this through trial and error only
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.12.0
Problem description
I am defining a method that takes
py::args
and needs to also accept be able to keyword arguments I don't want to accept just any keyword argument so I'm not usingpy::kwargs
The static assert seems to have a problem with this
Reproducible example code