Skip to content

Commit 0b95111

Browse files
DarkLight1337Isotr0py
authored andcommitted
[Ci/Build] Fix mypy errors on main (vllm-project#12296)
Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Isotr0py <[email protected]>
1 parent 18b7548 commit 0b95111

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vllm/multimodal/processing.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PromptReplacementDetails:
4343
"""
4444

4545
@staticmethod
46-
def from_seq(seq: _PromptSeq):
46+
def from_seq(seq: _PromptSeq) -> "PromptReplacementDetails":
4747
return PromptReplacementDetails(full=seq, features=seq)
4848

4949

@@ -132,7 +132,10 @@ class _BoundPromptSequence:
132132
_token_ids: Optional[list[int]]
133133

134134
@staticmethod
135-
def from_seq(tokenizer: AnyTokenizer, seq: _PromptSeq):
135+
def from_seq(
136+
tokenizer: AnyTokenizer,
137+
seq: _PromptSeq,
138+
) -> "_BoundPromptSequence":
136139
return _BoundPromptSequence(
137140
tokenizer=tokenizer,
138141
_text=seq if isinstance(seq, str) else None,

0 commit comments

Comments
 (0)