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