##// END OF EJS Templates
'Simplify affectation'
Matthias Bussonnier -
Show More
@@ -876,12 +876,10 b' class Inspector(Colorable):'
876 # Call form docstring for callable instances
876 # Call form docstring for callable instances
877 if safe_hasattr(obj, '__call__') and not is_simple_callable(obj):
877 if safe_hasattr(obj, '__call__') and not is_simple_callable(obj):
878 call_def = self._getdef(obj.__call__, oname)
878 call_def = self._getdef(obj.__call__, oname)
879 if call_def:
879 if call_def and (call_def != out.get('definition')):
880 call_def = call_def
881 # it may never be the case that call def and definition differ,
880 # it may never be the case that call def and definition differ,
882 # but don't include the same signature twice
881 # but don't include the same signature twice
883 if call_def != out.get('definition'):
882 out['call_def'] = call_def
884 out['call_def'] = call_def
885 call_ds = getdoc(obj.__call__)
883 call_ds = getdoc(obj.__call__)
886 # Skip Python's auto-generated docstrings
884 # Skip Python's auto-generated docstrings
887 if call_ds == _func_call_docstring:
885 if call_ds == _func_call_docstring:
General Comments 0
You need to be logged in to leave comments. Login now