pytorch/torch/export
Maggie Moss 086dec3235 Pyrefly suppressions 6/n (#164877)
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 (5,064 ignored)

Only four directories left to enable

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164877
Approved by: https://github.com/oulgen
2025-10-08 02:30:57 +00:00
..
experimental Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
passes Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
pt2_archive [export] Fix weight sharing when there is no complete tensor (#164857) 2025-10-07 23:40:13 +00:00
__init__.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
_draft_export.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
_leakage_detection_utils.py Prototype for building non-strict leak detector (#160456) 2025-09-03 19:21:27 +00:00
_remove_auto_functionalized_pass.py
_remove_effect_tokens_pass.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
_safeguard.py
_swap.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
_trace.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_tree_utils.py [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
_unlift.py Revert "Enable all SIM rules except disabled ones (#164645)" 2025-10-05 19:32:21 +00:00
_wrapper_utils.py
custom_obj.py
custom_ops.py Support vmap + custom autograd function/improve DTensor constructor inefficiency (#162240) 2025-09-11 17:42:41 +00:00
decomp_utils.py [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
dynamic_shapes.py [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
exported_program.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
graph_signature.py Add support for param mutation under inference mode (#159661) 2025-08-14 03:34:04 +00:00
unflatten.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00