Skip to content

Commit

Permalink
fix(types): TreeCursor node can be None
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed May 15, 2024
1 parent a64e0c4 commit f717a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree_sitter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class Tree:
@final
class TreeCursor:
@property
def node(self) -> Node: ...
def node(self) -> Node | None: ...
@property
def field_id(self) -> int | None: ...
@property
Expand Down

0 comments on commit f717a5e

Please sign in to comment.