-
Notifications
You must be signed in to change notification settings - Fork 270
Open
Description
Add support for Python type stub files (.pyi)
Description
Python .pyi files define public APIs and type contracts and are widely used in large Python codebases.
Indexing them improves API visibility and symbol resolution.
Extensions to add
.pyi
Implementation Notes
- Parse only function/class signatures and type aliases
- Skip runtime logic
How to Test
- Add a .pyi file in the sample_project:
sample_pyi.pyi - Run:
cgc start
cgc index sample_project
3. Verify:
React components and functions appear in the graph
Imports and exports are correctly linked
Attach a Screenshot of the code graph in your PR