Files
Tom Ritchford 818133b0ad Fix token linter framework to correctly handle ellipses, block length (#169377)
When writing #167075, I discovered a serious flaw in the linter framework that lead to wrong results, particularly when using the ellipsis format common in `.pyi` files:

```
def increment(i: int) -> int: ...
```

As a result, attempting to parse `torch/nn/functional.pyi` took hours and gave wrong answers!

This pull request fixes the issue and simplifies the linter framework a little to do so.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/169377
Approved by: https://github.com/yangdanny97, https://github.com/isuruf
2025-12-22 17:23:00 +00:00
..
2025-11-28 08:00:09 +00:00