[MyPy][1/N] Fix mypy errors in some tests/ directories and enforce follow-imports=silent (#49570)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
co-authored by
Harry Mellor
parent
89d97d9a16
commit
38a267cdd5
@@ -285,7 +285,7 @@ class TestPromptBuilding:
|
||||
)
|
||||
|
||||
for i, exp in enumerate(expected):
|
||||
assert engine_inputs[i]["prompt_token_ids"] == exp
|
||||
assert engine_inputs[i]["prompt_token_ids"] == exp # type: ignore[typeddict-item]
|
||||
|
||||
|
||||
class TestGeneration:
|
||||
|
||||
@@ -45,7 +45,7 @@ class ServerConfig(TypedDict, total=False):
|
||||
model: str
|
||||
arguments: list[str]
|
||||
model_arg: str
|
||||
tool_parser: ToolParser
|
||||
tool_parser: type[ToolParser]
|
||||
|
||||
|
||||
CONFIGS: dict[str, ServerConfig] = {
|
||||
|
||||
@@ -329,4 +329,5 @@ def test_weight_transfer_config_backend():
|
||||
)
|
||||
|
||||
config = llm.llm_engine.vllm_config.weight_transfer_config
|
||||
assert config is not None
|
||||
assert config.backend == "nccl"
|
||||
|
||||
Reference in New Issue
Block a user