Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 20, 2024
1 parent e718ca1 commit 556004f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/pybind11/functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct type_caster<std::function<Return(Args...)>> {
handle codeAttr = PyObject_GetAttrString(src.ptr(), "__code__");
std::cout << "AFTER codeAttr is not null" << std::endl;
if (codeAttr) {
std::cout<<"codeAttr is not null"<<std::endl;
std::cout << "codeAttr is not null" << std::endl;
argCount = argCountFromFuncCode(codeAttr);
} else {
std::cout << "BEFORE callAttr is not null" << std::endl;
Expand All @@ -156,7 +156,9 @@ struct type_caster<std::function<Return(Args...)>> {
- 1; // we have to remove the self argument
} else {
// No __code__ or __call__ attribute, this is not a proper Python function
std::cout<<"No __code__ or __call__ attribute, this is not a proper Python function"<<std::endl;
std::cout << "No __code__ or __call__ attribute, this is not a proper Python "
"function"
<< std::endl;
return false;
}
}
Expand Down

0 comments on commit 556004f

Please sign in to comment.