Skip to content

Commit

Permalink
fix: type of Tree.text property (#176)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jhandley authored Nov 15, 2023
1 parent 96bce64 commit dd45124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree_sitter/binding.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
...

Expand Down

0 comments on commit dd45124

Please sign in to comment.