[typing] Avoid non-contiguous overloads in splash_attention_kernel.py #41856

Merged
stroxler opened 11:38am on October 21, 2026 wanted to merge 1 commit into google/jax main from
fix-noncontiguous-overload
Diff Delta:
0
Classified as:  General

stroxler's Description of Work

The typing spec says that overload function definitions and the implementation must be contiguous.

While there are pros and cons to this (I can see how defining a helper like _div right above the implementation is handy) it does seem like a reasonable rule for readability. A PR to Pyrefly adding this missing check flagged this kernel in mypy_primer, so I figured I'd put up a fix since the next release will flag it.

0 total changed files
End of PR:
LGTM-land is officially in view