pytorch/torch
Maggie Moss c855f8632e Pyrefly suppressions 7/n (#164913)
Adds suppressions to pyrefly will typecheck clean: https://github.com/pytorch/pytorch/issues/163283

Almost there!

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

step 1: delete lines in the pyrefly.toml file from the project-excludes field
step 2: run pyrefly check
step 3: add suppressions, clean up unused suppressions
before: https://gist.github.com/maggiemoss/4b3bf2037014e116bc00706a16aef199

after:
 INFO 0 errors (6,884 ignored)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164913
Approved by: https://github.com/oulgen
2025-10-08 07:27:17 +00:00
..
_awaits
_C Revert "[CUDA] Add experimental green context support for SM carveout (#159104)" 2025-10-07 20:51:22 +00:00
_C_flatbuffer
_custom_op [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
_decomp Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_dispatch Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_dynamo Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
_export Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
_functorch Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_higher_order_ops Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_inductor locks + unit tests (#164636) 2025-10-08 04:34:22 +00:00
_lazy Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_library Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
_logging Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_numpy [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
_prims Add pyrefly suppressions 2/n (#164513) 2025-10-03 02:46:13 +00:00
_prims_common Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_refs Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_strobelight Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_subclasses Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_vendor
accelerator
amp Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
ao Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
autograd Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
backends [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
compiler Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
contrib
cpu Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
csrc Fix #164742, all header-impl'd userfacing functions should be inline (#164871) 2025-10-08 05:57:19 +00:00
cuda Revert "[CUDA] Add experimental green context support for SM carveout (#159104)" 2025-10-07 20:51:22 +00:00
distributed list_stored_sd_metadata API. (#160610) 2025-10-08 04:33:51 +00:00
distributions Add pyrefly suppressions (#164748) 2025-10-07 17:31:18 +00:00
export Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
fft
func
futures [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
fx Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
headeronly Move version.h to torch/headeronly (#164381) 2025-10-07 17:47:30 +00:00
jit Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
legacy
lib
linalg Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
masked Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
monitor
mps Add type annotations to MPS profiler utilities (#163486) 2025-09-27 23:00:53 +00:00
mtia Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
multiprocessing Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
nativert Add SVE128 ISA (#158932) 2025-09-29 14:49:19 +00:00
nested Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
nn Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
numa Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
onnx Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
optim Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
package Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
profiler Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
quantization Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
signal Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
sparse Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
special
testing Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
utils Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
xpu Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
__config__.py
__future__.py
__init__.py CUDA 13.0 builds fix on Amazon Linux 2023 (#164870) 2025-10-07 22:52:53 +00:00
_appdirs.py
_classes.py
_compile.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
_custom_ops.py
_environment.py
_guards.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
_jit_internal.py Revert "Enable all SIM rules except disabled ones (#164645)" 2025-10-05 19:32:21 +00:00
_linalg_utils.py
_lobpcg.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_lowrank.py
_meta_registrations.py Use sym_eq and sym_and on symbolic shapes in common_meta_baddbmm_bmm (#164781) 2025-10-07 18:25:00 +00:00
_namedtensor_internals.py
_ops.py Revert "Enable all SIM rules except disabled ones (#164645)" 2025-10-05 19:32:21 +00:00
_python_dispatcher.py
_size_docs.py
_sources.py
_storage_docs.py
_streambase.py
_tensor_docs.py Revert "Support setting grad_dtype on leaf tensors (#162815)" 2025-10-03 23:14:28 +00:00
_tensor_str.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_tensor.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_thread_safe_fork.py
_torch_docs.py Update documentation for torch.index_select (#163616) 2025-09-25 18:29:17 +00:00
_utils_internal.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_utils.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_VF.py
_vmap_internals.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
_weights_only_unpickler.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
CMakeLists.txt Revert "[RELAND] Always build USE_DISTRIBUTED (#160449) and Make distributed modules importable even when backend not built (#159889) (#162594)" 2025-09-25 13:47:46 +00:00
custom_class_detail.h
custom_class.h
extension.h
functional.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
header_only_apis.txt Migrate DeviceType to torch/headeronly (#163999) 2025-09-30 23:13:27 +00:00
hub.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
library.h
library.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
overrides.py Revert "Support setting grad_dtype on leaf tensors (#162815)" 2025-10-03 23:14:28 +00:00
py.typed
quasirandom.py
random.py Revert "Add device argument to torch.random.get_rng_state (#163034)" 2025-10-04 15:25:45 +00:00
return_types.py
script.h
serialization.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
storage.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
torch_version.py
types.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
version.py.tpl