Update deprecated type hinting in vllm/lora (#18128)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-05-14 11:57:59 +01:00
committed by GitHub
parent 9ccc6ded42
commit 9b5b39b650
19 changed files with 245 additions and 251 deletions

View File

@@ -6,7 +6,7 @@ import json
import math
import os
from dataclasses import MISSING, dataclass, field, fields
from typing import List, Literal, Optional, Union
from typing import Literal, Optional, Union
from vllm.config import LoRAConfig
from vllm.logger import init_logger
@@ -40,7 +40,7 @@ class PEFTHelper:
vllm_max_position_embeddings: Optional[int] = field(default=False)
vllm_long_context_scaling_factor: Optional[float] = field(default=None)
def _validate_features(self) -> List[str]:
def _validate_features(self) -> list[str]:
"""
Check if there are any unsupported LoRA features.
"""