Skip to main content

Module python

Module python 

Source

Constants§

CALL_QUERY
Tree-sitter query for extracting function calls.
ELEMENT_QUERY
Tree-sitter query for extracting Python elements (functions and classes).
IMPORT_QUERY
Tree-sitter query for extracting Python imports.
REFERENCE_QUERY
Tree-sitter query for extracting type references. Python grammar has no type_identifier node; use (type (identifier) @type_ref) to capture type names in annotations and generic_type for parameterized types.

Functions§

extract_inheritance
Extract inheritance information from a Python class node.