[mypy] Enable type checking for more directories (#29674)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-11-29 00:39:27 +08:00
committed by GitHub
parent 9eec282cb5
commit 9e6bcda3ac
12 changed files with 35 additions and 31 deletions

View File

@@ -614,12 +614,12 @@ def _maybe_remap_hf_config_attrs(config: PretrainedConfig) -> PretrainedConfig:
def maybe_override_with_speculators(
model: str,
tokenizer: str,
tokenizer: str | None,
trust_remote_code: bool,
revision: str | None = None,
vllm_speculative_config: dict[str, Any] | None = None,
**kwargs,
) -> tuple[str, str, dict[str, Any] | None]:
) -> tuple[str, str | None, dict[str, Any] | None]:
"""
Resolve model configuration when speculators are detected.