Add pyrefly suppressions 2/n (#164513)

Adds suppressions to pyrefly will typecheck clean: https://github.com/pytorch/pytorch/issues/163283

Test plan:
dmypy restart && python3 scripts/lintrunner.py -a
pyrefly check

---
step 1: uncomment lines in the `pyrefly.toml` file
before: https://gist.github.com/maggiemoss/911b4d0bc88bf8cf3ab91f67184e9d46

after:
```
 INFO Checking project configured at `/Users/maggiemoss/python_projects/pytorch/pyrefly.toml`
 INFO 0 errors (1,152 ignored)
 ```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164513
Approved by: https://github.com/oulgen
This commit is contained in:
Maggie Moss
2025-10-03 02:46:09 +00:00
committed by PyTorch MergeBot
parent d1cbb74fb1
commit 1051c1de5c
26 changed files with 133 additions and 13 deletions

View File

@ -40,16 +40,6 @@ project-excludes = [
"torch/autograd/**",
"torch/cuda/**",
"torch/export/**",
"torch/profiler/**",
"torch/_prims_common/**",
"torch/backends/**",
# "torch/testing/**",
"torch/_C/**",
"torch/sparse/**",
"torch/_library/**",
"torch/_prims/**",
"torch/_decomp/**",
"torch/_meta_registrations.py",
# formatting issues
"torch/linalg/__init__.py",
"torch/package/importer.py",