Update deprecated type hinting in vllm/adapter_commons (#18073)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-05-13 08:32:51 -07:00
committed by GitHub
parent 19324d660c
commit 0b217da646
5 changed files with 18 additions and 20 deletions
+2 -3
View File
@@ -1,15 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass
from typing import Tuple
@dataclass
class AdapterMapping:
# Per every token in input_ids:
index_mapping: Tuple[int, ...]
index_mapping: tuple[int, ...]
# Per sampled token:
prompt_mapping: Tuple[int, ...]
prompt_mapping: tuple[int, ...]
def __post_init__(self):
self.index_mapping = tuple(self.index_mapping)