[MyPy] Fix mypy for vllm/benchmarks (#39896)

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Martin Hickey
2026-06-23 15:22:29 +00:00
committed by GitHub
co-authored by Harry Mellor
parent 547d2c40d7
commit 275b43183c
24 changed files with 297 additions and 151 deletions
+3 -2
View File
@@ -26,6 +26,7 @@ from vllm.benchmarks.lib.utils import (
write_to_json,
)
from vllm.engine.arg_utils import EngineArgs
from vllm.utils.argparse_utils import FlexibleArgumentParser
PERCENTAGES = [10, 25, 50, 75, 90, 99]
@@ -190,7 +191,7 @@ def save_to_pytorch_benchmark_format(
write_to_json(f"{base_name}.{m.key}.pytorch.json", records)
def add_cli_args(parser: argparse.ArgumentParser):
def add_cli_args(parser: FlexibleArgumentParser):
parser.add_argument(
"--num-iters-cold",
type=int,
@@ -234,7 +235,7 @@ def main(args: argparse.Namespace):
"""
# Create a queue for inter-process communication
result_queue = multiprocessing.Queue()
result_queue: multiprocessing.Queue[Any] = multiprocessing.Queue()
process = multiprocessing.Process(
target=run_startup_in_subprocess,
args=(