Commit fdab54f1 authored by John Kirkwood's avatar John Kirkwood

Builtins in C may not return a signature. #3

parent e319f81f
Pipeline #2012 passed with stages
in 36 seconds
......@@ -48,9 +48,14 @@ class DocDescriptor:
ret = []
if callable(obj.target):
# TODO: enhance output of the signature help
sig = ''
try:
sig = inspect.signature(obj.target)
except ValueError:
pass
ret.append(''.join([
f'Signature: {GREEN}{obj.name}{RESET}',
f'{inspect.signature(obj.target)}'
f'{sig}'
]))
if 'value' in self.__dict__:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment