Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-wanna-M committed Nov 8, 2024
1 parent 20b5b0f commit 7288c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/kbnf/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def try_accept_new_bytes(self, _bytes:bytes)->AcceptTokenResult:
return self._internal.try_accept_new_bytes(_bytes)

def get_allowed_token_ids_from_last_computation(self)->typing.List[int]:
return self._internal.allowed_token_ids_from_last_computation()
return self._internal.get_allowed_token_ids_from_last_computation()

def compute_allowed_token_ids(self)->typing.List[int]:
return self._internal.compute_allowed_token_ids()

def get_disallowed_token_ids_from_last_computation(self)->typing.List[int]:
return self._internal.disallowed_token_ids_from_last_computation()
return self._internal.get_disallowed_token_ids_from_last_computation()

def check_if_token_is_allowed(self, token_id:int)->bool:
return self._internal.check_if_token_is_allowed(token_id)
Expand Down

0 comments on commit 7288c79

Please sign in to comment.