From 7633537092c6c314848f02ce9247df40614f4acc Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Mon, 12 Feb 2024 15:11:21 +0100 Subject: [PATCH] refine --- papyri/ts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/papyri/ts.py b/papyri/ts.py index 498e32bd..e4a04aab 100644 --- a/papyri/ts.py +++ b/papyri/ts.py @@ -45,11 +45,12 @@ allowed_adorn = "=-`:.'\"~^_*+#<>" try: - from tree_sitter_languages import get_language, get_parser + from tree_sitter_languages import get_parser # language = get_language('python') parser = get_parser("rst") except ModuleNotFoundError: + assert False # replace by tree-sitter-languages once it works See https://github.com/grantjenks/py-tree-sitter-languages/issues/15 try: from tree_sitter import Language, Parser