From 8983e0216fff76f53c09d6b4e356d852eff2291b Mon Sep 17 00:00:00 2001 From: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Date: Thu, 9 Oct 2025 18:16:48 -0400 Subject: [PATCH] [CI] Fix Pre-commit Issue Cannot determine type of "rank" and "world_size" (#26448) Signed-off-by: yewentao256 --- vllm/distributed/device_communicators/all2all.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vllm/distributed/device_communicators/all2all.py b/vllm/distributed/device_communicators/all2all.py index a22f43cd88d1..a67405f44206 100644 --- a/vllm/distributed/device_communicators/all2all.py +++ b/vllm/distributed/device_communicators/all2all.py @@ -377,6 +377,11 @@ class FlashInferAllToAllManager(All2AllManagerBase): All2All communication based on flashinfer kernels. """ + # This type lint could be removed after all of the work in + # https://github.com/vllm-project/vllm/issues/26533 done. + rank: int + world_size: int + def __init__(self, cpu_group): assert has_flashinfer_all2all(), ( "flashinfer all2all module not found. Please install/check flashinfer"