forked from M-Labs/artiq
protocols/pc_rpc: properly convert FullArgSpec to dict
This commit is contained in:
parent
8999d57461
commit
91a8acf304
|
@ -468,7 +468,7 @@ class Server(_AsyncioServer):
|
||||||
continue
|
continue
|
||||||
method = getattr(target, name)
|
method = getattr(target, name)
|
||||||
argspec = inspect.getfullargspec(method)
|
argspec = inspect.getfullargspec(method)
|
||||||
doc["methods"][name] = (dict(argspec.__dict__),
|
doc["methods"][name] = (dict(argspec._asdict()),
|
||||||
inspect.getdoc(method))
|
inspect.getdoc(method))
|
||||||
if self.builtin_terminate:
|
if self.builtin_terminate:
|
||||||
doc["methods"]["terminate"] = (
|
doc["methods"]["terminate"] = (
|
||||||
|
|
Loading…
Reference in New Issue