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
@@ -1193,7 +1193,7 @@ def voxtral_patch_hf_runner(hf_model: "HfRunner") -> "HfRunner":
output.sequences = output.sequences[:, prompt_len:]
return output
hf_model.get_inputs = patched_get_inputs # type: ignore[method-assign, assignment]
hf_model.get_inputs = patched_get_inputs # type: ignore[method-assign]
hf_model.model.generate = patched_generate # type: ignore[method-assign]
return hf_model
+1 -1
View File
@@ -132,7 +132,7 @@ def test_models(
_run_test(
hf_runner,
vllm_runner,
input_cases, # type: ignore[arg-type]
input_cases,
model,
dtype=dtype,
)
@@ -190,7 +190,7 @@ def test_models(
_run_test(
hf_runner,
vllm_runner,
input_cases, # type: ignore[arg-type]
input_cases,
model,
dtype=dtype,
)
@@ -149,7 +149,7 @@ def test_models(
_run_test(
hf_runner,
vllm_runner,
input_cases, # type: ignore[arg-type]
input_cases,
model,
dtype=dtype,
)
@@ -106,7 +106,7 @@ def test_merge_and_resolve_mm_processor_kwargs_preserves_request_alias_precedenc
mm_device_do_normalize=False,
)
model_config = SimpleNamespace(get_multimodal_config=lambda: mm_config)
ctx = InputProcessingContext(model_config, tokenizer=None) # type: ignore[arg-type]
ctx = InputProcessingContext(model_config, tokenizer=None)
info = Qwen2VLProcessingInfo(ctx)
monkeypatch.setattr(
info,
@@ -236,7 +236,7 @@ def test_get_vision_info_reads_merged_modality_scope(
do_resize=False,
image_processor=image_processor,
mm_kwargs={},
modality=modality, # type: ignore[arg-type]
modality=modality,
)
assert seen == [merged[scope]]