From dd45124a09dee409f452f949f98882ae4a612120 Mon Sep 17 00:00:00 2001 From: Josh Handley Date: Wed, 15 Nov 2023 12:03:16 -0500 Subject: [PATCH] fix: type of Tree.text property (#176) The .pyi file for the bindings report that Tree.text is a str but it is bytes. This was fixed for Node.text but not for for Tree. --- tree_sitter/binding.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree_sitter/binding.pyi b/tree_sitter/binding.pyi index d30c4e0..628fbc8 100644 --- a/tree_sitter/binding.pyi +++ b/tree_sitter/binding.pyi @@ -216,7 +216,7 @@ class Tree: """The root node of this tree.""" ... @property - def text(self) -> str: + def text(self) -> bytes: """The source text for this tree, if unedited.""" ...