Skip to content

Commit 8a3896e

Browse files
style: pre-commit fixes
1 parent ec84c33 commit 8a3896e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/pybind11/functional.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,16 @@ struct type_caster<std::function<Return(Args...)>> {
151151
std::cout << "__code__ exists" << std::endl;
152152
argCount = argCountFromFuncCode(codeAttr);
153153
} 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__"));
156156
assert((static_cast<bool>(callAttr)
157157
== static_cast<bool>(PyObject_HasAttrString(src.ptr(), "__call__")))
158158
&& "ptr and "
159159
"HasAttrString "
160160
"inconsistent for __call__");
161161
if (static_cast<bool>(PyObject_HasAttrString(src.ptr(), "__call__"))) {
162162
std::cout << "__call__ exists" << std::endl;
163-
object codeAttr2 = getattr(callAttr ,"__code__");
163+
object codeAttr2 = getattr(callAttr, "__code__");
164164
// reinterpret_borrow<object>(
165165
// PyObject_GetAttrString(callAttr.ptr(), "__code__"));
166166
argCount = argCountFromFuncCode(codeAttr2)

0 commit comments

Comments
 (0)