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
+3 -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) # type: ignore[arg-type]
state = DryState(_make_vllm_config(), req_states)
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) # type: ignore[arg-type]
DryState(config, req_states)
def test_v2_draft_expanded_logits_raise():
@@ -918,7 +918,7 @@ def test_loads_through_the_loader_by_fqcn():
)
procs = loader.build_custom_logits_processors(
_make_vllm_config(),
req_states, # type: ignore[arg-type]
req_states,
False,
[DRY_FQCN],
)