Update
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user