Pybind callback function generation #4048
Unanswered
maneeshsinghxavo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing Python binding code for a C++ function:
bind code:
python_call:
However, I get this error:
TypeError: acceptCall(): incompatible function arguments. The following argument types are supported:
1. (self: pyunifiedphone.APIExtProvider, arg1: Callable[[pyunifiedphone.Result, pyunifiedphone.Exception], None]) -> None
Invoked with: <pyunifiedphone.APIExtProvider object at 0x7f2b6aa149b0>, , <function reply_method at 0x7f2b6abfa1f0>
What is the correct way of binding?
any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions