Show More
@@ -639,6 +639,7 b' class Inspector(Colorable):' | |||
|
639 | 639 | |
|
640 | 640 | append_field(_mime, 'File', 'file') |
|
641 | 641 | append_field(_mime, 'Type', 'type_name') |
|
642 | append_field(_mime, 'Subclasses', 'subclasses') | |
|
642 | 643 | |
|
643 | 644 | else: |
|
644 | 645 | # General Python objects |
@@ -859,6 +860,9 b' class Inspector(Colorable):' | |||
|
859 | 860 | if init_ds: |
|
860 | 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 | 866 | # and class docstring for instances: |
|
863 | 867 | else: |
|
864 | 868 | # reconstruct the function definition and print it: |
General Comments 0
You need to be logged in to leave comments.
Login now