This commit is contained in:
2026-06-16 19:37:23 +03:00
parent c2b7a39424
commit 0600e5dc94
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import aiohttp_jinja2
from aiohttp.web import Response
from .. import JSONRPC
from ..rpc import JSONRPC
from ..exceptions import ParseError
from ..serialize import JSONRPCEncoder
from ..core import workdir
+2 -2
View File
@@ -45,8 +45,8 @@ class RPC:
# print(sig.parameters[key].annotation)
result = {
'name': name,
'handler': getattr(handler, '__name__', None),
'summary': getattr(handler, '__doc__', None),
'handler': getattr(handler, '__name__', ''),
'summary': getattr(handler, '__doc__', ''),
'params': [
{'name': k, 'type': sig.parameters[k].annotation.__name__}
for k in sig.parameters