PEP 561 stub-only package providing type annotations for tree-sitter-languages, enabling type-checking of grammar definitions and language bindings. As of version 1.10.0.20250530, it supports Python >=3.9 and is maintained by the typeshed project. Releases track tree-sitter-languages versions with a date suffix for stub updates.
pip install types-tree-sitter-languagesVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: obtaining a language object and parser for Python, parsing a snippet, and accessing the syntax tree.
pip install tree-sitter-languages
Use 'from tree_sitter_languages import get_language, get_parser' instead.