mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix typing to be compatible with later py versions (#32155)
This commit is contained in:
parent
3263b34354
commit
a009fbdab3
@ -1948,7 +1948,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
|
||||
return self._rendered_blocks or self._generation_indices
|
||||
|
||||
@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:
|
||||
if self.is_active():
|
||||
raise ValueError("AssistantTracker should not be reused before closed")
|
||||
|
Loading…
Reference in New Issue
Block a user