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