[Mypy] Fix mypy for vllm/config (#37808)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-03-23 10:33:59 -04:00
committed by GitHub
parent 10a1018c12
commit 45bd5c8e75
15 changed files with 68 additions and 59 deletions

View File

@@ -25,8 +25,8 @@ MaxLoRARanks = Literal[1, 8, 16, 32, 64, 128, 256, 320, 512]
LoRAExtraVocabSize = Literal[256, 512]
@config(config=ConfigDict(arbitrary_types_allowed=True))
class LoRAConfig:
@config(config=ConfigDict(arbitrary_types_allowed=True)) # type: ignore[arg-type,misc]
class LoRAConfig: # type: ignore[misc]
"""Configuration for LoRA."""
max_lora_rank: MaxLoRARanks = 16