pytorch/torch
Maggie Moss c7eee49525 Fix pyrefly ignores 1/n (#166239)
First diff adjusting the syntax for pyrefly: ignore suppressions so they only hide one class of type error.

Test:
lintrunner
pyrefly check

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166239
Approved by: https://github.com/oulgen
2025-10-26 00:44:10 +00:00
..
_awaits
_C [fx] Optimize torch.fx.Node.replace_all_uses_with (#165889) 2025-10-25 03:44:41 +00:00
_C_flatbuffer
_custom_op Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_decomp Back out "Do not decompose in functionalization/proxy tensor if autograd wouldn't have decomposed (#164939)" (#165910) 2025-10-21 16:36:38 +00:00
_dispatch Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_dynamo Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_export Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_functorch Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_higher_order_ops Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_inductor Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_lazy Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_library Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_logging Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_numpy Enable PLW0127 in ruff (#165851) 2025-10-21 03:30:57 +00:00
_prims Fix self assignment (#165816) 2025-10-18 18:51:52 +00:00
_prims_common
_refs Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_strobelight
_subclasses Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_vendor
accelerator Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
amp Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
ao Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
autograd Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
backends Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
compiler Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
contrib
cpu
csrc [TorchScript] clearer debug for ConcreteModuleType::findSubmoduleConcreteType (#166192) 2025-10-25 14:07:54 +00:00
cuda Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
distributed Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
distributions
export Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
fft
func
futures
fx Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
headeronly Remove likely unnecessary _EXPAND trick for non-windows in HIDDEN_NAMESPACE_BEGIN (#166203) 2025-10-25 04:44:07 +00:00
jit Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
legacy
lib [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
linalg
masked Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
monitor
mps
mtia Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
multiprocessing
nativert [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
nested Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
nn Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
numa
onnx Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
optim Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
package Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
profiler Enable PLC0414 on ruff (#165828) 2025-10-22 04:56:52 +00:00
quantization [RFC] Add pyrefly to lintrunner (#165179) 2025-10-16 20:07:09 +00:00
signal Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
sparse [RFC] Add pyrefly to lintrunner (#165179) 2025-10-16 20:07:09 +00:00
special
testing [MPS] Add linalg.householder_product for MPS (#166090) 2025-10-24 21:13:56 +00:00
utils Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
xpu Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
__config__.py
__future__.py
__init__.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_appdirs.py
_classes.py
_compile.py
_custom_ops.py
_environment.py
_guards.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_jit_internal.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_linalg_utils.py
_lobpcg.py
_lowrank.py
_meta_registrations.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_namedtensor_internals.py
_ops.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_python_dispatcher.py
_size_docs.py
_sources.py
_storage_docs.py
_streambase.py
_tensor_docs.py
_tensor_str.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
_tensor.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_thread_safe_fork.py
_torch_docs.py Clarrifying input output angle unit in the docs for trigonometric fun… (#161248) 2025-10-18 11:53:48 +00:00
_utils_internal.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_utils.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
CMakeLists.txt
custom_class_detail.h
custom_class.h
extension.h
functional.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
header_only_apis.txt Move toUnderlying to headeronly (#165694) 2025-10-22 05:31:16 +00:00
hub.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
library.h
library.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
overrides.py Add scaled_grouped_mm_v2 and python API (#165154) 2025-10-15 17:47:23 +00:00
py.typed
quasirandom.py
random.py
return_types.py
script.h
serialization.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
storage.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
torch_version.py
types.py Enable PLC0414 on ruff (#165828) 2025-10-22 04:56:52 +00:00
version.py.tpl