A VS Code extension that helps you analyze inheritance relationships of Python class methods, showing whether methods are inherited and from which class.
Features
Visual Indicators: Gutter icons (🔼/🔽) show inheritance relationships directly in the editor
🔽 Down arrow: Method is inherited by subclasses
🔼 Up arrow: Method is inherited from parent class
Rich Hover Information: Hover over method definitions or gutter icons to see detailed inheritance information
Shows parent class and file location for inherited methods
Lists all subclasses that inherit the method
Displays override status
Cross-File Analysis: Analyzes inheritance relationships across multiple files in your workspace
Third-Party Package Support: Can analyze classes from third-party packages in site-packages
Complete Analysis Report: Use the command palette to view a complete inheritance relationship analysis report
Multi-Level Inheritance: Tracks multi-level class inheritance relationships
Method Override Detection: Identifies whether methods override parent class methods
Ctrl+Click Navigation: Jump to parent class method definitions with Ctrl+Click
Usage
Visual Indicators
Open any Python file (.py)
Icons will automatically appear in the gutter next to method definitions:
🔽 Blue down arrow: Method is inherited by subclasses
🔼 Red up arrow: Method is inherited from parent class
Hover Information
Hover over a method definition line or the gutter icon
A detailed tooltip will show:
Whether the method is inherited from a parent class
Which parent class it's inherited from
File location and line number of the parent definition
Whether the method overrides a parent class method
List of subclasses that inherit this method
Navigation
Ctrl+Click (or Cmd+Click on macOS) on a method definition to jump to its parent class definition
Complete Analysis Report
Open a Python file
Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) to open the command palette
Type "Show Inheritance Analysis" or "Python Inheritance: Show Inheritance Analysis"
A Markdown view will open in the side panel showing the complete class inheritance relationship analysis
Requirements
VS Code 1.60.0 or higher
Python files (.py extension)
Extension Settings
This extension requires no configuration and will automatically activate when you open Python files.
Publishing
This extension includes a GitHub Action workflow for automatic publishing to the VS Code Marketplace.