File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,16 +151,16 @@ struct type_caster<std::function<Return(Args...)>> {
151
151
std::cout << " __code__ exists" << std::endl;
152
152
argCount = argCountFromFuncCode (codeAttr);
153
153
} else {
154
- object callAttr = getattr (src , " __call__" );
155
- // = reinterpret_borrow<object>(PyObject_GetAttrString(src.ptr(), "__call__"));
154
+ object callAttr = getattr (src, " __call__" );
155
+ // = reinterpret_borrow<object>(PyObject_GetAttrString(src.ptr(), "__call__"));
156
156
assert ((static_cast <bool >(callAttr)
157
157
== static_cast <bool >(PyObject_HasAttrString (src.ptr (), " __call__" )))
158
158
&& " ptr and "
159
159
" HasAttrString "
160
160
" inconsistent for __call__" );
161
161
if (static_cast <bool >(PyObject_HasAttrString (src.ptr (), " __call__" ))) {
162
162
std::cout << " __call__ exists" << std::endl;
163
- object codeAttr2 = getattr (callAttr , " __code__" );
163
+ object codeAttr2 = getattr (callAttr, " __code__" );
164
164
// reinterpret_borrow<object>(
165
165
// PyObject_GetAttrString(callAttr.ptr(), "__code__"));
166
166
argCount = argCountFromFuncCode (codeAttr2)
You can’t perform that action at this time.
0 commit comments