[mypy] Pass type checking for vllm/utils and vllm/v1/pool (#29666)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-11-28 20:40:47 +08:00
committed by GitHub
parent 33b06a6f24
commit 953d9c820b
9 changed files with 37 additions and 43 deletions
+2 -2
View File
@@ -68,11 +68,11 @@ class MemorySnapshot:
timestamp: float = 0.0
auto_measure: bool = True
def __post_init__(self):
def __post_init__(self) -> None:
if self.auto_measure:
self.measure()
def measure(self):
def measure(self) -> None:
from vllm.platforms import current_platform
# we measure the torch peak memory usage via allocated_bytes,