Skip to content

Commit 9edd1db

Browse files
authored
[Minor] Fix type (#22347)
Signed-off-by: Woosuk Kwon <[email protected]>
1 parent f263a4b commit 9edd1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/entrypoints/harmony_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
33
import datetime
4-
from collections.abc import Iterable
4+
from collections.abc import Iterable, Sequence
55
from typing import Literal, Optional
66

77
from openai.types.responses.tool import Tool
@@ -120,7 +120,7 @@ def parse_output_into_messages(token_ids: Iterable[int]) -> StreamableParser:
120120

121121

122122
def parse_chat_output(
123-
token_ids: list[int]) -> tuple[Optional[str], Optional[str], bool]:
123+
token_ids: Sequence[int]) -> tuple[Optional[str], Optional[str], bool]:
124124
parser = parse_output_into_messages(token_ids)
125125
output_msgs = parser.messages
126126
if len(output_msgs) == 0:

0 commit comments

Comments
 (0)