mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
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
Block a user