void-packages/srcpkgs/python3-pybind11/patches/docs.patch
2020-05-20 14:44:54 +02:00

22 lines
565 B
Diff

diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h
index 63cbf2e..519f839 100644
--- include/pybind11/pytypes.h
+++ include/pybind11/pytypes.h
@@ -980,6 +980,7 @@ public:
return std::string(buffer, (size_t) length);
}
};
+/// @} pytypes
inline bytes::bytes(const pybind11::str &s) {
object temp = s;
@@ -1009,6 +1010,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)