[Fix] Alloc return type error (#7778)
Signed-off-by: Capronir <839972205@qq.com>
This commit is contained in:
1 parent
af46f299f9
commit
af5647748a
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user