Disable mypy arg-type and assignment checks in tests (#59428)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-30 15:18:50 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 17e9295dd5
commit fc2c801ad9
131 changed files with 402 additions and 409 deletions
@@ -29,7 +29,7 @@ from vllm.entrypoints.cohere.cohere_chat_message import (
class TestCitationSource:
def test_invalid_type_rejected(self):
with pytest.raises(ValidationError):
CitationSource(type="other") # type: ignore[arg-type]
CitationSource(type="other")
def test_none_fields_excluded_from_dump(self):
s = CitationSource(type="document", id="d1")
@@ -65,7 +65,7 @@ class TestCitationSource:
class TestCitation:
def test_invalid_type_rejected(self):
with pytest.raises(ValidationError):
Citation(type="OTHER") # type: ignore[arg-type]
Citation(type="OTHER")
def test_dump_excludes_none_fields(self):
c = Citation(start=0, end=5, text="hello")
+2 -2
View File
@@ -136,7 +136,7 @@ class TestCohereChatV2Response:
with pytest.raises(ValidationError):
CohereChatV2Response(
id="r1",
finish_reason="NOT_A_REASON", # type: ignore[arg-type]
finish_reason="NOT_A_REASON",
message=msg,
)
@@ -246,5 +246,5 @@ class TestStreamingEventTypeField:
MessageStartEvent(
id="a",
delta={"message": {"role": "assistant"}},
type="other", # type: ignore[arg-type]
type="other",
)