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:
co-authored by
Claude Opus 5.5
parent
17e9295dd5
commit
fc2c801ad9
@@ -113,7 +113,7 @@ def test_beam_search_abort_returns_partial_outputs_and_continues_other_prompts(
|
||||
{"type": "token", "prompt_token_ids": [token]} for token in [prompt_token, 2]
|
||||
]
|
||||
params = BeamSearchParams(beam_width=2, max_tokens=3)
|
||||
outputs = llm.beam_search(prompts, params) # type: ignore[arg-type]
|
||||
outputs = llm.beam_search(prompts, params)
|
||||
|
||||
aborted, normal = outputs
|
||||
expected_tokens = (
|
||||
@@ -326,7 +326,7 @@ def test_beam_search_structured_output(
|
||||
|
||||
llm = LLM(
|
||||
model=model,
|
||||
dtype=dtype, # type: ignore[arg-type]
|
||||
dtype=dtype,
|
||||
max_model_len=512,
|
||||
structured_outputs_config=dict(
|
||||
backend="xgrammar",
|
||||
@@ -345,7 +345,7 @@ def test_beam_search_structured_output(
|
||||
"Generate a JSON object for a person with name and age:",
|
||||
]
|
||||
|
||||
outputs = llm.beam_search(prompts, params) # type: ignore[arg-type]
|
||||
outputs = llm.beam_search(prompts, params)
|
||||
|
||||
assert len(outputs) == len(prompts)
|
||||
for output in outputs:
|
||||
|
||||
@@ -57,8 +57,8 @@ class _EngineClient:
|
||||
|
||||
|
||||
class _Serving(BeamSearchOnlineMixin):
|
||||
renderer = _Renderer() # type: ignore[assignment]
|
||||
engine_client = _EngineClient() # type: ignore[assignment]
|
||||
renderer = _Renderer()
|
||||
engine_client = _EngineClient()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user