diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 6947d440..a04d5365 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1389,9 +1389,9 @@ public: } return pybind11::str("???"); }); - def_property_readonly_static("__doc__", [m_entries_ptr](handle self) { + def_property_readonly_static("__doc__", [m_entries_ptr](handle self_) { std::string docstring; - const char *tp_doc = ((PyTypeObject *) self.ptr())->tp_doc; + const char *tp_doc = ((PyTypeObject *) self_.ptr())->tp_doc; if (tp_doc) docstring += std::string(tp_doc) + "\n\n"; docstring += "Members:"; @@ -1404,7 +1404,7 @@ public: } return docstring; }); - def_property_readonly_static("__members__", [m_entries_ptr](handle /* self */) { + def_property_readonly_static("__members__", [m_entries_ptr](handle /* self_ */) { dict m; for (const auto &kv : reinterpret_borrow(m_entries_ptr)) m[kv.first] = kv.second[int_(0)];