pytorch/torch/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
..
_strobelight Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_sympy Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
backcompat
benchmark Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
data Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
hipify Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
jit
model_dump Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
serialization
tensorboard Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
viz Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
__init__.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
_appending_byte_serializer.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_config_module.py [Fix] Adding missing f prefixes to formatted strings [2/N] (#164066) 2025-09-29 04:40:44 +00:00
_config_typing.pyi
_content_store.py
_contextlib.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_cpp_embed_headers.py [Fix] Adding missing f prefixes to formatted strings [2/N] (#164066) 2025-09-29 04:40:44 +00:00
_cpp_extension_versioner.py
_cxx_pytree.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
_debug_mode.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_device.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_dtype_abbrs.py
_exposed_in.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_filelock.py
_foreach_utils.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_functools.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_get_clean_triton.py
_helion.py
_import_utils.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
_mode_utils.py
_ordered_set.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_python_dispatch.py [BE] Slight improvements to documentation in python_dispatch (#162963) 2025-09-21 01:45:46 +00:00
_pytree.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_stats.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_thunk.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_traceback.py
_triton.py Workaround for mtia double init issue in has_triton (#162974) 2025-09-16 04:46:11 +00:00
_typing_utils.py
_zip.py
backend_registration.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
bundled_inputs.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
checkpoint.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
collect_env.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
cpp_backtrace.py
cpp_extension.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
deterministic.py
dlpack.py [DLPack] Add support for missing keyword-arguments. (#150218) 2025-07-20 00:46:20 +00:00
file_baton.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
flop_counter.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
hooks.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
mkldnn.py
mobile_optimizer.py
model_zoo.py
module_tracker.py [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
show_pickle.py
throughput_benchmark.py
weak.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00