diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 8d84517..19b7acf 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -2579,6 +2579,12 @@ cdef class _InterfaceMethod: # TODO(soon): make sure this is memory safe return _StructSchema()._init(self.thisptr.getParamType()) + property result_type: + """The type of this method's result struct""" + def __get__(self): + # TODO(soon): make sure this is memory safe + return _StructSchema()._init(self.thisptr.getResultType()) + cdef class _InterfaceSchema: cdef _init(self, C_InterfaceSchema other): self.thisptr = other