pub fn extract_python_class_hierarchy(
source: &str,
) -> HashMap<String, Vec<String>>Expand description
Extract the Python class → [parents] map from a single source file by
parsing it with tree-sitter-python.
Returns an empty map when the source fails to parse or contains no
class_definition nodes. The returned map is the per-file contribution
to the global hierarchy used by resolve_calls_with_python_mro_pub
for MRO-aware receiver-type dispatch (Q1, Wave 2).