pytorch/torch/nn
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
..
attention Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
backends
intrinsic
modules Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parallel Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
qat [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
quantizable [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
quantized [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
utils Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
__init__.py
_reduction.py
common_types.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
cpp.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
functional.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
functional.pyi.in Revert "Add label_smoothing param in nn.BCELoss and nn.BCEWithLogitsLoss (#150282)" 2025-08-13 09:01:52 +00:00
grad.py
init.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parameter.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parameter.pyi remove allow-untyped-defs from torch/nn/parameter.pyi (#144654) 2025-01-13 19:02:31 +00:00