From b7f7df7ee6c2a47fdffb8275feffb24108eca73f Mon Sep 17 00:00:00 2001 From: sglang-bot Date: Tue, 3 Mar 2026 20:34:22 -0800 Subject: [PATCH] [NSA] Fix line-too-long lint in `can_nsa_prefill_cp_round_robin_split` (#19829) --- python/sglang/srt/layers/attention/nsa/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/layers/attention/nsa/utils.py b/python/sglang/srt/layers/attention/nsa/utils.py index 8b17c574c..1e097983d 100644 --- a/python/sglang/srt/layers/attention/nsa/utils.py +++ b/python/sglang/srt/layers/attention/nsa/utils.py @@ -54,7 +54,12 @@ def can_nsa_prefill_cp_round_robin_split(forward_batch: "ForwardBatch"): return False cp_size = get_attention_cp_size() seq_len = sum(forward_batch.extend_seq_lens_cpu) - return is_nsa_prefill_cp_round_robin_split() and seq_len > 0 and seq_len >= cp_size and cp_size > 1 + return ( + is_nsa_prefill_cp_round_robin_split() + and seq_len > 0 + and seq_len >= cp_size + and cp_size > 1 + ) def nsa_cp_round_robin_split_data(input_: Union[torch.Tensor, List]):