From 39694e87395cc339313e4e0414823872a3ba34ac Mon Sep 17 00:00:00 2001 From: Arnaud Botella Date: Wed, 18 Dec 2024 19:56:55 +0100 Subject: [PATCH] fix(Python): missing bindings on Attribute --- bindings/python/src/basic/attribute.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bindings/python/src/basic/attribute.cpp b/bindings/python/src/basic/attribute.cpp index d8eb4a9ca..35554eb60 100644 --- a/bindings/python/src/basic/attribute.cpp +++ b/bindings/python/src/basic/attribute.cpp @@ -70,8 +70,12 @@ namespace geode pybind11::class_< AttributeBase, std::shared_ptr< AttributeBase > >( module, "AttributeBase" ) .def( "generic_value", &AttributeBase::generic_value ) + .def( "generic_item_value", &AttributeBase::generic_item_value ) .def( "properties", &AttributeBase::properties ) - .def( "is_genericable", &AttributeBase::is_genericable ); + .def( "is_genericable", &AttributeBase::is_genericable ) + .def( "nb_items", &AttributeBase::nb_items ) + .def( "type", &AttributeBase::type ) + .def( "name", &AttributeBase::name ); python_attribute_class< bool >( module, "Bool" ); python_attribute_class< int >( module, "Int" ); python_attribute_class< unsigned int >( module, "UInt" );