Skip to content

Commit 0fc127b

Browse files
committed
simplify
Signed-off-by: Raayan Dhar [email protected] <[email protected]>
1 parent 643aa95 commit 0fc127b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

python/sglang/utils.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -328,23 +328,11 @@ def __or__(self, other):
328328
if isinstance(other, LazyImport):
329329
other_type = other._load()
330330
elif isinstance(other, tuple):
331-
# Handle chaining: A | (B, C) -> (A, B, C)
332331
return (self_type,) + other
333332
else:
334333
other_type = other
335334
return (self_type, other_type)
336335

337-
def __ror__(self, other):
338-
self_type = self._load()
339-
if isinstance(other, LazyImport):
340-
other_type = other._load()
341-
elif isinstance(other, tuple):
342-
# Handle chaining: (A, B) | C -> (A, B, C)
343-
return other + (self_type,)
344-
else:
345-
other_type = other
346-
return (other_type, self_type)
347-
348336
def __instancecheck__(self, instance):
349337
return isinstance(instance, self._load())
350338

0 commit comments

Comments
 (0)