From ddc2aaaadd5500870e9053561e1228ce9d1de6d8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 07:45:28 +0000 Subject: [PATCH] style: pre-commit fixes --- include/pybind11/functional.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/pybind11/functional.h b/include/pybind11/functional.h index 18e6368ab51..da580eb95a7 100644 --- a/include/pybind11/functional.h +++ b/include/pybind11/functional.h @@ -141,7 +141,7 @@ struct type_caster> { std::cout << "BEFORE " << std::endl; auto codeAttr - = reinterpret_borrow (PyObject_GetAttrString(src.ptr(), "__code__")); + = reinterpret_borrow(PyObject_GetAttrString(src.ptr(), "__code__")); assert((static_cast(codeAttr) == static_cast(PyObject_HasAttrString(src.ptr(), "__code__"))) && "ptr and " @@ -152,7 +152,7 @@ struct type_caster> { argCount = argCountFromFuncCode(codeAttr); } else { auto callAttr - = reinterpret_borrow (PyObject_GetAttrString(src.ptr(), "__call__")); + = reinterpret_borrow(PyObject_GetAttrString(src.ptr(), "__call__")); assert((static_cast(callAttr) == static_cast(PyObject_HasAttrString(src.ptr(), "__call__"))) && "ptr and " @@ -160,8 +160,8 @@ struct type_caster> { "inconsistent for __call__"); if (static_cast(PyObject_HasAttrString(src.ptr(), "__call__"))) { std::cout << "__call__ exists" << std::endl; - auto codeAttr2 = reinterpret_borrow (PyObject_GetAttrString( - callAttr.ptr(), "__code__")); + auto codeAttr2 = reinterpret_borrow( + PyObject_GetAttrString(callAttr.ptr(), "__code__")); argCount = argCountFromFuncCode(codeAttr2) - 1; // we have to remove the self argument } else {