prpc.utils.decorators

prpc.utils.decorators.expand_args(function)

Expand arguments passed inside the CallContext object.

Converts internal method signature ‘method(ctx)’ to whatever is appropriate to the client code.

Parameters:function – Async function expecting CallContext as a last argument.
Returns:Async function with altered signature.