Unverified Commit a009fbda authored by amyeroberts's avatar amyeroberts Committed by GitHub
Browse files

Fix typing to be compatible with later py versions (#32155)

parent 3263b343
...@@ -1948,7 +1948,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin): ...@@ -1948,7 +1948,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
return self._rendered_blocks or self._generation_indices return self._rendered_blocks or self._generation_indices
@contextmanager @contextmanager
def activate_tracker(self, rendered_blocks: list[int], generation_indices: list[int]): def activate_tracker(self, rendered_blocks: List[int], generation_indices: List[int]):
try: try:
if self.is_active(): if self.is_active():
raise ValueError("AssistantTracker should not be reused before closed") raise ValueError("AssistantTracker should not be reused before closed")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment