mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
pytypes.h: fix docs generation (#2220)
This commit is contained in:
parent
a38e5331d7
commit
a3118130c6
@ -980,6 +980,9 @@ public:
|
|||||||
return std::string(buffer, (size_t) length);
|
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) {
|
inline bytes::bytes(const pybind11::str &s) {
|
||||||
object temp = s;
|
object temp = s;
|
||||||
@ -1009,6 +1012,8 @@ inline str::str(const bytes& b) {
|
|||||||
m_ptr = obj.release().ptr();
|
m_ptr = obj.release().ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// \addtogroup pytypes
|
||||||
|
/// @{
|
||||||
class none : public object {
|
class none : public object {
|
||||||
public:
|
public:
|
||||||
PYBIND11_OBJECT(none, object, detail::PyNone_Check)
|
PYBIND11_OBJECT(none, object, detail::PyNone_Check)
|
||||||
|
Loading…
Reference in New Issue
Block a user