We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4212339 commit 375db6aCopy full SHA for 375db6a
include/pybind11/functional.h
@@ -161,7 +161,7 @@ struct type_caster<std::function<Return(Args...)>> {
161
"inconsistent for __call__");
162
if (callAttr) {
163
std::cout << "__call__ exists" << std::endl;
164
- object codeAttr2 = getattr(callAttr ,"__code__");
+ object codeAttr2 = getattr(callAttr, "__code__");
165
// reinterpret_borrow<object>(
166
// PyObject_GetAttrString(callAttr.ptr(), "__code__"));
167
argCount = argCountFromFuncCode(codeAttr2)
0 commit comments