Show More
@@ -698,11 +698,11 b' class IPCompleter(Completer):' | |||||
698 | if inspect.isbuiltin(obj): |
|
698 | if inspect.isbuiltin(obj): | |
699 | pass |
|
699 | pass | |
700 | elif not (inspect.isfunction(obj) or inspect.ismethod(obj)): |
|
700 | elif not (inspect.isfunction(obj) or inspect.ismethod(obj)): | |
701 | #for cython embededsignature=True the docstring belongs to |
|
|||
702 | #the object itself not __init__ or __call__ |
|
|||
703 | ret += self._default_arguments_from_docstring( |
|
|||
704 | getattr(obj,'__doc__','')) |
|
|||
705 | if inspect.isclass(obj): |
|
701 | if inspect.isclass(obj): | |
|
702 | #for cython embededsignature=True the constructor docstring | |||
|
703 | #belongs to the object itself not __init__ | |||
|
704 | ret += self._default_arguments_from_docstring( | |||
|
705 | getattr(obj,'__doc__','')) | |||
706 | # for classes, check for __init__,__new__ |
|
706 | # for classes, check for __init__,__new__ | |
707 | call_obj = (getattr(obj,'__init__',None) or |
|
707 | call_obj = (getattr(obj,'__init__',None) or | |
708 | getattr(obj,'__new__',None)) |
|
708 | getattr(obj,'__new__',None)) |
General Comments 0
You need to be logged in to leave comments.
Login now