From e4f126718628e8641fcc4d7c852545df036344dd Mon Sep 17 00:00:00 2001 From: Echo-Nie <157974576+Echo-Nie@users.noreply.github.com> Date: Thu, 6 Nov 2025 16:13:12 +0800 Subject: [PATCH] bug: fix list to List (#4818) --- fastdeploy/engine/kv_cache_interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fastdeploy/engine/kv_cache_interface.py b/fastdeploy/engine/kv_cache_interface.py index a872fc8fa..c504cc3ad 100644 --- a/fastdeploy/engine/kv_cache_interface.py +++ b/fastdeploy/engine/kv_cache_interface.py @@ -16,7 +16,7 @@ import copy from dataclasses import dataclass -from typing import list +from typing import List from typing_extensions import Self @@ -33,11 +33,11 @@ class KVCacheSpec: block_memory_used: int @classmethod - def merge(cls, specs: list[Self]) -> Self: + def merge(cls, specs: List[Self]) -> Self: """ - Merge a list of KVCacheSpec objects into a single KVCacheSpec object. + Merge a List of KVCacheSpec objects into a single KVCacheSpec object. """ - # check list + # check List assert all( (spec.block_size == specs[0].block_size and spec.block_memory_used == specs[0].block_memory_used) for spec in specs[1:]