diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index d39fbb68b..36e7e4851 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -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"] = (