[Mypy Fix] Mypy fix for "vllm/model_executor/models/[eE][fF]" (#53381)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-08-22 15:41:27 -04:00
committed by GitHub
parent 236f78cc5c
commit 811d12ee26
16 changed files with 71 additions and 84 deletions
+4 -2
View File
@@ -106,8 +106,10 @@ def support_torch_compile(
@overload
def support_torch_compile(
*,
dynamic_arg_dims: dict[str, int | list[int] | dict[int, str]] | None,
mark_unbacked_dims: dict[str, int | list[int]] | None,
dynamic_arg_dims: dict[str, int | list[int] | dict[int, str]] | None = None,
mark_unbacked_dims: dict[str, int | list[int]] | None = None,
enable_if: Callable[[VllmConfig], bool] | None = None,
is_encoder: bool = False,
) -> Callable[[type[_T]], type[_T]]: ...