Change DynamicValue.Reader lists to be returned as _DynamicListReader
This commit is contained in:
@@ -355,7 +355,7 @@ cdef toPythonReader(C_DynamicValue.Reader self, object parent):
|
|||||||
temp = self.asData()
|
temp = self.asData()
|
||||||
return (<char*>temp.begin())[:temp.size()]
|
return (<char*>temp.begin())[:temp.size()]
|
||||||
elif type == capnp.TYPE_LIST:
|
elif type == capnp.TYPE_LIST:
|
||||||
return list(_DynamicListReader()._init(self.asList(), parent))
|
return _DynamicListReader()._init(self.asList(), parent)
|
||||||
elif type == capnp.TYPE_STRUCT:
|
elif type == capnp.TYPE_STRUCT:
|
||||||
return _DynamicStructReader()._init(self.asStruct(), parent)
|
return _DynamicStructReader()._init(self.asStruct(), parent)
|
||||||
elif type == capnp.TYPE_ENUM:
|
elif type == capnp.TYPE_ENUM:
|
||||||
|
|||||||
Reference in New Issue
Block a user