[Fix] Alloc return type error (#7778)

Signed-off-by: Capronir <839972205@qq.com>
This commit is contained in:
Caproni
2025-07-05 10:00:40 +08:00
committed by GitHub
parent af46f299f9
commit af5647748a

View File

@@ -74,7 +74,7 @@ class ReqToMetadataIdxAllocator:
def available_size(self):
return len(self.free_slots)
def alloc(self) -> List[int]:
def alloc(self) -> Optional[int]:
if len(self.free_slots) == 0:
return None