From a3118130c6cf6307bf21fdb7ce9c00a71aec1360 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" <48421688+ahesford@users.noreply.github.com> Date: Sun, 31 May 2020 00:59:50 -0400 Subject: [PATCH] pytypes.h: fix docs generation (#2220) --- include/pybind11/pytypes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index 63cbf2e56..6cf7fe173 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -980,6 +980,9 @@ public: return std::string(buffer, (size_t) length); } }; +// Note: breathe >= 4.17.0 will fail to build docs if the below two constructors +// are included in the doxygen group; close here and reopen after as a workaround +/// @} pytypes inline bytes::bytes(const pybind11::str &s) { object temp = s; @@ -1009,6 +1012,8 @@ inline str::str(const bytes& b) { m_ptr = obj.release().ptr(); } +/// \addtogroup pytypes +/// @{ class none : public object { public: PYBIND11_OBJECT(none, object, detail::PyNone_Check)