[Mypy] Fix mypy for vllm/model_executor (except vllm/model_executor/layers) (#37904)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-03-24 17:14:01 +00:00
committed by GitHub
parent dc78c2c933
commit b3601da6e7
10 changed files with 44 additions and 39 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import inspect
import warnings
from contextlib import contextmanager
from dataclasses import dataclass, field
from typing import Any
import torch
from torch import nn
@@ -71,7 +72,7 @@ def initialize_model(
model_class,
)
# try to be compatible with old-style model class
kwargs = {}
kwargs: dict[str, Any] = {}
if "prefix" in all_params:
kwargs["prefix"] = prefix
if "config" in all_params: