Commit 4bc6a355 authored by Tom Niget's avatar Tom Niget

Remove function return annotation from signature string

parent e2b4e738
......@@ -38,7 +38,7 @@ def rpc(f):
argspec = inspect.getfullargspec(f)
assert not (argspec.varargs or argspec.varkw), f
sig = inspect.signature(f)
sig = sig.replace(parameters=[*sig.parameters.values()][1:])
sig = sig.replace(parameters=[*sig.parameters.values()][1:], return_annotation=inspect.Signature.empty)
f.getcallargs = eval("lambda %s: locals()" % str(sig)[1:-1])
return f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment