[lint]clean code (#5218)

### What this PR does / why we need it?
Fix lint error inreoduced by
https://github.com/vllm-project/vllm-ascend/pull/5141

- vLLM version: release/v0.13.0
- vLLM main:
https://github.com/vllm-project/vllm/commit/ad32e3e19ccf0526cb6744a5fed09a138a5fb2f9

Signed-off-by: weiguihua2 <weiguihua2@huawei.com>
This commit is contained in:
weiguihua2 authored and GitHub committed 2025-12-20 18:24:04 +08:00
1 parent bbde0f9743
commit 21745221a3
1 file changed
+6 -6
@@ -81,17 +81,17 @@ def test_output_between_tp_and_cp(
}
cp_full_kwargs = {}
cp_full_kwargs.update(common_kwargs)
cp_full_kwargs.update(cp_kwargs)
cp_full_kwargs.update(common_kwargs) # type: ignore
cp_full_kwargs.update(cp_kwargs) # type: ignore
tp_full_kwargs = {}
tp_full_kwargs.update(common_kwargs)
tp_full_kwargs.update(tp_kwargs)
with VllmRunner(model, **cp_full_kwargs) as runner:
tp_full_kwargs.update(common_kwargs) # type: ignore
tp_full_kwargs.update(tp_kwargs) # type: ignore
with VllmRunner(model, **cp_full_kwargs) as runner: # type: ignore
vllm_context_parallel_outputs = runner.generate_greedy(
prompts, max_tokens)
with VllmRunner(model, **tp_full_kwargs) as runner:
with VllmRunner(model, **tp_full_kwargs) as runner: # type: ignore
vllm_eager_outputs = runner.generate_greedy(prompts, max_tokens)
check_outputs_equal(