chore: add mypy llama4 files

Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
Mustafa Elbehery 2025-07-08 23:51:33 +02:00
parent 51b179e1c5
commit eb988a0d4e
2 changed files with 14 additions and 2 deletions

View file

@ -237,7 +237,7 @@ class Tokenizer:
str: The decoded string.
"""
# Typecast is safe here. Tiktoken doesn't do anything list-related with the sequence.
return self.model.decode(cast(list[int], t))
return cast(str, self.model.decode(cast(list[int], t)))
@staticmethod
def _split_whitespaces_or_nonwhitespaces(s: str, max_consecutive_slice_len: int) -> Iterator[str]: