Fix return type (#965)

This commit is contained in:
Romain Thomas
2023-09-16 06:00:21 +02:00
parent e89db0c1c9
commit b3d6b20085
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ void create<Section>(nb::module_& m) {
"Section's name"_doc)
.def_prop_ro("fullname",
&Section::fullname,
[] (const Section& obj) {
const std::string& fullname = obj.fullname();
return nb::bytes(fullname.data(), fullname.size());
},
"Return the **fullname** of the section including the trailing bytes"_doc)
.def_prop_rw("size",