Skip to content

Commit

Permalink
Update binding.pyi
Browse files Browse the repository at this point in the history
The .pyi file for the bindings report that `Node.text` is a `str`, when in fact it's a `bytes` object.
  • Loading branch information
pedrovhb authored and amaanq committed Nov 13, 2023
1 parent 1db0f2f commit f246d06
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 @@ -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"""
...

Expand Down

0 comments on commit f246d06

Please sign in to comment.