Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
af564774
Unverified
Commit
af564774
authored
Jul 05, 2025
by
Caproni
Committed by
GitHub
Jul 04, 2025
Browse files
[Fix] Alloc return type error (#7778)
Signed-off-by:
Capronir
<
839972205@qq.com
>
parent
af46f299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/disaggregation/utils.py
python/sglang/srt/disaggregation/utils.py
+1
-1
No files found.
python/sglang/srt/disaggregation/utils.py
View file @
af564774
...
@@ -74,7 +74,7 @@ class ReqToMetadataIdxAllocator:
...
@@ -74,7 +74,7 @@ class ReqToMetadataIdxAllocator:
def
available_size
(
self
):
def
available_size
(
self
):
return
len
(
self
.
free_slots
)
return
len
(
self
.
free_slots
)
def
alloc
(
self
)
->
List
[
int
]:
def
alloc
(
self
)
->
Optional
[
int
]:
if
len
(
self
.
free_slots
)
==
0
:
if
len
(
self
.
free_slots
)
==
0
:
return
None
return
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment