Show More
@@ -639,6 +639,7 b' class Inspector(Colorable):' | |||||
639 |
|
639 | |||
640 | append_field(_mime, 'File', 'file') |
|
640 | append_field(_mime, 'File', 'file') | |
641 | append_field(_mime, 'Type', 'type_name') |
|
641 | append_field(_mime, 'Type', 'type_name') | |
|
642 | append_field(_mime, 'Subclasses', 'subclasses') | |||
642 |
|
643 | |||
643 | else: |
|
644 | else: | |
644 | # General Python objects |
|
645 | # General Python objects | |
@@ -859,6 +860,9 b' class Inspector(Colorable):' | |||||
859 | if init_ds: |
|
860 | if init_ds: | |
860 | out['init_docstring'] = init_ds |
|
861 | out['init_docstring'] = init_ds | |
861 |
|
862 | |||
|
863 | names = [sub.__name__ for sub in obj.__subclasses__()] | |||
|
864 | all_names = ', '.join(names) | |||
|
865 | out['subclasses'] = all_names | |||
862 | # and class docstring for instances: |
|
866 | # and class docstring for instances: | |
863 | else: |
|
867 | else: | |
864 | # reconstruct the function definition and print it: |
|
868 | # reconstruct the function definition and print it: |
General Comments 0
You need to be logged in to leave comments.
Login now