[Bugfix][Config] Keep pydantic validation for fields with a TYPE_CHECKING Literal alias (#46220)

Signed-off-by: Ting Sun <suntcrick@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Ting SUN
2026-06-24 12:25:50 +00:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 160c80a34c
commit f1a6703edd
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -127,8 +127,8 @@ if TYPE_CHECKING:
from vllm.v1.executor import Executor
else:
Executor = Any
QuantizationMethods = Any
LoadFormats = Any
QuantizationMethods = str
LoadFormats = str
UsageContext = Any