py-tree-sitter icon indicating copy to clipboard operation
py-tree-sitter copied to clipboard

add tree_sitter.__version__

Open milahu opened this issue 3 months ago • 1 comments

priority: nice to have

tree_sitter.__version__ should return the release version, currently 0.25.1

$ python
>>> import tree_sitter
>>> tree_sitter.__version__
AttributeError: module 'tree_sitter' has no attribute '__version__'
>>> tree_sitter.LANGUAGE_VERSION
14

milahu avatar Sep 19 '25 08:09 milahu

In the meantime you can get the version via importlib.metadata.

ObserverOfTime avatar Sep 19 '25 10:09 ObserverOfTime