Skip to content

Commit

Permalink
Update vllm/inputs/data.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cyrus Leung <[email protected]>
  • Loading branch information
CloseChoice and DarkLight1337 authored Jan 2, 2025
1 parent aa6dda7 commit 6560143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/inputs/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ def multi_modal_hashes(self) -> List[str]:

if inputs["type"] == "token":
return inputs.get("multi_modal_hashes", [])
elif inputs["type"] == "multimodal":

if inputs["type"] == "multimodal":

Check failure on line 313 in vllm/inputs/data.py

View workflow job for this annotation

GitHub Actions / mypy (3.9)

unindent does not match any outer indentation level [syntax]

Check failure on line 313 in vllm/inputs/data.py

View workflow job for this annotation

GitHub Actions / ruff (3.12)

Ruff

vllm/inputs/data.py:313:8: SyntaxError: unindent does not match any outer indentation level

Check failure on line 313 in vllm/inputs/data.py

View workflow job for this annotation

GitHub Actions / mypy (3.11)

unindent does not match any outer indentation level [syntax]

Check failure on line 313 in vllm/inputs/data.py

View workflow job for this annotation

GitHub Actions / mypy (3.12)

unindent does not match any outer indentation level [syntax]
# only the case when we use MultiModalInputsV2
return inputs.get("mm_hashes", []) # type: ignore[return-value]

Expand Down

0 comments on commit 6560143

Please sign in to comment.