Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: DarkLight1337 <[email protected]>
  • Loading branch information
DarkLight1337 committed Jan 22, 2025
1 parent 016e367 commit 26b5076
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vllm/multimodal/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PromptReplacementDetails:
"""

@staticmethod
def from_seq(seq: _PromptSeq):
def from_seq(seq: _PromptSeq) -> "PromptReplacementDetails":
return PromptReplacementDetails(full=seq, features=seq)


Expand Down Expand Up @@ -132,7 +132,10 @@ class _BoundPromptSequence:
_token_ids: Optional[list[int]]

@staticmethod
def from_seq(tokenizer: AnyTokenizer, seq: _PromptSeq):
def from_seq(
tokenizer: AnyTokenizer,
seq: _PromptSeq,
) -> "_BoundPromptSequence":
return _BoundPromptSequence(
tokenizer=tokenizer,
_text=seq if isinstance(seq, str) else None,
Expand Down

0 comments on commit 26b5076

Please sign in to comment.