##// END OF EJS Templates
Show (Call) Signature of object first....
Bibo Hao -
Show More
@@ -658,6 +658,9 b' class Inspector(Colorable):'
658 658
659 659 else:
660 660 # General Python objects
661 append_field(_mime, 'Signature', 'definition', code_formatter)
662 append_field(_mime, 'Call signature', 'call_def', code_formatter)
663
661 664 append_field(_mime, 'Type', 'type_name')
662 665
663 666 # Base class for old-style instances
@@ -671,9 +674,8 b' class Inspector(Colorable):'
671 674 append_field(_mime, 'Namespace', 'namespace')
672 675
673 676 append_field(_mime, 'Length', 'length')
674 append_field(_mime, 'File', 'file'),
675 append_field(_mime, 'Signature', 'definition', code_formatter)
676
677 append_field(_mime, 'File', 'file')
678
677 679 # Source or docstring, depending on detail level and whether
678 680 # source found.
679 681 if detail_level > 0:
@@ -683,10 +685,8 b' class Inspector(Colorable):'
683 685
684 686 append_field(_mime, 'Class docstring', 'class_docstring', formatter)
685 687 append_field(_mime, 'Init docstring', 'init_docstring', formatter)
686 append_field(_mime, 'Call signature', 'call_def', code_formatter)
687 688 append_field(_mime, 'Call docstring', 'call_docstring', formatter)
688
689
689
690 690
691 691 return self.format_mime(_mime)
692 692
General Comments 0
You need to be logged in to leave comments. Login now