Given a generic Capnproto interface, such as:
interface Foo(X)
{
bar @0 (baz :X);
}
How would one implement a server for Foo using pycapnp?
The following python code doesn't work, presumably as Foo.Server is not a concrete type:
class MyFoo(Foo.Server):
def bar_context(self, ctx, **kwargs):
pass
When I attempt to pass my server as an interface parameter, I get the error:
"failed: expected capability.getSchema(),extends(interfaceType); Value type mismatch."
I'd be happy to use a Foo(Any).Server, if that was all I could get...
Vaci