Unverified Commit 374a5b00 authored by Masaki Kozuki's avatar Masaki Kozuki Committed by GitHub
Browse files

[docs] Fix "Enumerations and internal types" example (#4034)



* Fix binding of `Pet::Attributes`

* omit `attributes` as it's not needed
Signed-off-by: default avatarMasaki Kozuki <mkozuki@nvidia.com>
parent dd3bf7fd
...@@ -482,7 +482,7 @@ The binding code for this example looks as follows: ...@@ -482,7 +482,7 @@ The binding code for this example looks as follows:
.value("Cat", Pet::Kind::Cat) .value("Cat", Pet::Kind::Cat)
.export_values(); .export_values();
py::class_<Pet::Attributes> attributes(pet, "Attributes") py::class_<Pet::Attributes>(pet, "Attributes")
.def(py::init<>()) .def(py::init<>())
.def_readwrite("age", &Pet::Attributes::age); .def_readwrite("age", &Pet::Attributes::age);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment