Skip to content

Commit 1b077c2

Browse files
committed
Ruff
1 parent e7d22be commit 1b077c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/cache_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ def create_dynamic_caches_from_legacy_cache(
18241824

18251825
@classmethod
18261826
def from_legacy_cache(
1827-
cls, past_key_values: Optional[Iterable[tuple[torch.FloatTensor, ...]]],
1827+
cls, past_key_values: Optional[Iterable[tuple[torch.FloatTensor, ...]]]
18281828
) -> "EncoderDecoderCache":
18291829
"""Converts a cache in the legacy cache format into an equivalent `EncoderDecoderCache`."""
18301830
if past_key_values is None:

0 commit comments

Comments
 (0)