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
|
||||
method = getattr(target, name)
|
||||
argspec = inspect.getfullargspec(method)
|
||||
doc["methods"][name] = (dict(argspec.__dict__),
|
||||
doc["methods"][name] = (dict(argspec._asdict()),
|
||||
inspect.getdoc(method))
|
||||
if self.builtin_terminate:
|
||||
doc["methods"]["terminate"] = (
|
||||
|
Loading…
Reference in New Issue
Block a user