mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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