From 374a5b000af0b334979ce0cffdff46689b9fe27f Mon Sep 17 00:00:00 2001 From: Masaki Kozuki Date: Tue, 28 Jun 2022 12:38:37 -0700 Subject: [PATCH] [docs] Fix "Enumerations and internal types" example (#4034) * Fix binding of `Pet::Attributes` * omit `attributes` as it's not needed Signed-off-by: Masaki Kozuki --- docs/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/classes.rst b/docs/classes.rst index 0c687b7c5..c0c53135b 100644 --- a/docs/classes.rst +++ b/docs/classes.rst @@ -482,7 +482,7 @@ The binding code for this example looks as follows: .value("Cat", Pet::Kind::Cat) .export_values(); - py::class_ attributes(pet, "Attributes") + py::class_(pet, "Attributes") .def(py::init<>()) .def_readwrite("age", &Pet::Attributes::age);