diff --git a/capnp/includes/schema_cpp.pxd b/capnp/includes/schema_cpp.pxd index e615017..3716648 100644 --- a/capnp/includes/schema_cpp.pxd +++ b/capnp/includes/schema_cpp.pxd @@ -628,6 +628,11 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema": void setId(UInt64) Value getValue() void setValue(Value) + cdef cppclass ListNestedNodeReader"capnp::List::Reader": + ListNestedNodeReader() + ListNestedNodeReader(ListNestedNodeReader) + Node.NestedNode.Reader operator[](uint) + uint size() cdef extern from "capnp/message.h" namespace " ::capnp": cdef cppclass ReaderOptions: diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index ab65392..6d1eb8c 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -559,9 +559,9 @@ cdef class _DynamicListBuilder: return '' % strListBuilder(self.thisptr).cStr() cdef class _List_NestedNode_Reader: - cdef List[C_Node.NestedNode].Reader thisptr + cdef C_Node.NestedNode.Reader.ListNestedNodeReader thisptr cdef _init(self, List[C_Node.NestedNode].Reader other): - self.thisptr = other + self.thisptr = other return self def __getitem__(self, index):