Skip to content

Commit 006e378

Browse files
committed
pytypes.h: fix docs generation
1 parent a54eab9 commit 006e378

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/pybind11/pytypes.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,9 @@ class bytes : public object {
980980
return std::string(buffer, (size_t) length);
981981
}
982982
};
983+
// Note: breathe >= 4.17.0 will fail to build docs if the below two constructors
984+
// are included in the doxygen group; close here and reopen after as a workaround
985+
/// @} pytypes
983986

984987
inline bytes::bytes(const pybind11::str &s) {
985988
object temp = s;
@@ -1009,6 +1012,8 @@ inline str::str(const bytes& b) {
10091012
m_ptr = obj.release().ptr();
10101013
}
10111014

1015+
/// \addtogroup pytypes
1016+
/// @{
10121017
class none : public object {
10131018
public:
10141019
PYBIND11_OBJECT(none, object, detail::PyNone_Check)

0 commit comments

Comments
 (0)