firecrown.fctools.print_hierarchy ================================= .. py:module:: firecrown.fctools.print_hierarchy .. autoapi-nested-parse:: This script provides a way to print the class hierarchy of a given type. Attributes ---------- .. autoapisummary:: firecrown.fctools.print_hierarchy.app Functions --------- .. autoapisummary:: firecrown.fctools.print_hierarchy.full_type_name firecrown.fctools.print_hierarchy.get_defined_methods firecrown.fctools.print_hierarchy.print_one_type firecrown.fctools.print_hierarchy.print_type_hierarchy firecrown.fctools.print_hierarchy.main Module Contents --------------- .. py:function:: full_type_name(t) Return the full type name, with the module path to the type. .. py:function:: get_defined_methods(cls) Return a list of method names defined in the class. This includes methods introduced in this class, as well as inherited methods that are overridden in this class. It does not include methods inherited from base classes. .. py:function:: print_one_type(idx, t) Print the direct type information for the type t. This function does not traverse the type hierarchy; see print_type_hierarchy for that purpose. .. py:function:: print_type_hierarchy(top_type) Print the class hierarchy for the given type. .. py:data:: app .. py:function:: main(typenames = typer.Argument(..., help='One or more fully qualified type names')) Print the class hierarchy for the given type(s). This tool displays the Method Resolution Order (MRO) for Python classes, showing the inheritance hierarchy and all methods defined in each class. TYPENAMES One or more fully qualified type names (e.g. mymodule.MyClass)