[MyPy][3/N] Fix MyPy errors in test groups (part 3) (#55939)

Signed-off-by: Taimys <ffy2281693949@gmail.com>
Signed-off-by: Luyi Xiao <81631911+luyixiao95@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Luyi Xiao <81631911+luyixiao95@users.noreply.github.com>
Co-authored-by: Taimys <ffy2281693949@gmail.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Taimys
2026-09-30 11:06:07 +00:00
committed by GitHub
co-authored by Codex Luyi Xiao Taimys Harry Mellor Claude Opus 5.5
parent c4fa6f36a7
commit 5225f1bacb
118 changed files with 948 additions and 605 deletions
+6 -3
View File
@@ -340,7 +340,7 @@ def _make_v2_state(
device=device,
all_token_ids=SimpleNamespace(gpu=all_tokens),
)
state = DryState(_make_vllm_config(), req_states)
state = DryState(_make_vllm_config(), req_states) # type: ignore[arg-type]
if tokenizer is not None:
# Re-resolve the default set now that a tokenizer is installed.
state._tokenizer = tokenizer
@@ -446,7 +446,7 @@ def test_spec_decode_is_refused_at_construction():
)
config = _make_vllm_config(speculative_config=SimpleNamespace())
with pytest.raises(ValueError, match="speculative decoding"):
DryState(config, req_states)
DryState(config, req_states) # type: ignore[arg-type]
def test_v2_draft_expanded_logits_raise():
@@ -917,7 +917,10 @@ def test_loads_through_the_loader_by_fqcn():
total_len=None,
)
procs = loader.build_custom_logits_processors(
_make_vllm_config(), req_states, False, [DRY_FQCN]
_make_vllm_config(),
req_states, # type: ignore[arg-type]
False,
[DRY_FQCN],
)
assert [type(p) for p in procs] == [DryState]