Skip to content

Commit

Permalink
fix(types): iterator reset methods return bool
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed May 15, 2024
1 parent cb89d7c commit 3424ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree_sitter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ class LookaheadIterator(Iterator[int]):
@property
def current_symbol_name(self) -> str: ...
@deprecated("Use `reset_state()` instead")
def reset(self, language: _Ptr, state: int, /) -> None: ...
def reset(self, language: _Ptr, state: int, /) -> bool: ...

# TODO(0.24): rename to reset
def reset_state(self, state: int, language: Language | None = None) -> None: ...
def reset_state(self, state: int, language: Language | None = None) -> bool: ...
def iter_names(self) -> Iterator[str]: ...
def __next__(self) -> int: ...

Expand Down

0 comments on commit 3424ad9

Please sign in to comment.