[Fix] Alloc return type error (#7778)

Signed-off-by: Capronir <839972205@qq.com>
This commit is contained in:
Caproni authored and GitHub committed 2025-07-04 19:00:40 -07:00
1 parent af46f299f9
commit af5647748a
1 file changed
+1 -1
+1 -1
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