From f246d063f8699ebce3aab9cf957447cb8db098e4 Mon Sep 17 00:00:00 2001 From: Pedro Batista Date: Sun, 12 Nov 2023 12:18:26 -0300 Subject: [PATCH] Update binding.pyi The .pyi file for the bindings report that `Node.text` is a `str`, when in fact it's a `bytes` object. --- 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 70fa7e5..d30c4e0 100644 --- a/tree_sitter/binding.pyi +++ b/tree_sitter/binding.pyi @@ -178,7 +178,7 @@ class Node: """The number of descendants for a node, including itself""" ... @property - def text(self) -> str: + def text(self) -> bytes: """The node's text, if tree has not been edited""" ...