pytorch/torch/nn/utils
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
..
_expanded_weights Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
__init__.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
_deprecation_utils.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_named_member_accessor.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
_per_sample_grad.py [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
clip_grad.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
convert_parameters.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00
fusion.py [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
init.py [BE] enable UFMT for torch/nn/utils (#128595) 2024-06-13 18:34:57 +00:00
memory_format.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parametrizations.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parametrize.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
prune.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
rnn.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
spectral_norm.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
stateless.py [5/N] Apply Ruff fixes and pyupgrade to Python 3.9 (#144205) 2025-01-15 04:00:47 +00:00
weight_norm.py [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00