diff --git a/include/pybind11/detail/smart_holder_type_casters.h b/include/pybind11/detail/smart_holder_type_casters.h index b3289773a..ee7915775 100644 --- a/include/pybind11/detail/smart_holder_type_casters.h +++ b/include/pybind11/detail/smart_holder_type_casters.h @@ -403,6 +403,7 @@ struct shared_ptr_trampoline_self_life_support { gil_scoped_acquire gil; Py_INCREF(self); } + // NOLINTNEXTLINE(readability-make-member-function-const) void operator()(void *) { gil_scoped_acquire gil; Py_DECREF(self);