pytorch/torch/_library
Bob Ren 2c7959eee9 [ignore][codex-test] Add typing to simple library registry (#161367)
## Summary
- add type annotations for simple library registry and dispatch rule holder
- remove allow-untyped-defs directive

## Testing
- `python -m mypy torch/_library/simple_registry.py` *(fails: repo expects mypy==1.16.0)*
- `lintrunner -a torch/_library/simple_registry.py` *(fails: attr-defined error in torchgen/gen_schema_utils.py)*
- `python test/test_torch.py TestTorch.test_dir` *(fails: ModuleNotFoundError: No module named 'torch')*

------
https://chatgpt.com/codex/tasks/task_e_68aa3cc210488326befdd992c79115a0
Pull Request resolved: https://github.com/pytorch/pytorch/pull/161367
Approved by: https://github.com/Skylion007
2025-09-23 02:08:55 +00:00
..
__init__.py fix typo in doc and import for torch._library.triton (#144882) 2025-01-17 17:32:12 +00:00
autograd.py [custom_ops][perf] Move expensive pytree traversals of tensors to C++ (#148555) 2025-04-01 18:45:48 +00:00
custom_ops.py Replace Literal[None] with None in typing (#163489) 2025-09-22 22:10:08 +00:00
fake_class_registry.py [torchbind] fix fakifying a staitc tensor returns dynamic accidentally (#158607) 2025-07-25 20:55:41 +00:00
fake_impl.py [custom ops] Override fake registration (#150806) 2025-04-12 02:43:47 +00:00
fake_profile.py [BE][2/16] fix typos in torch/ (torch/_*/) (#156312) 2025-07-12 05:47:06 +00:00
infer_schema.py [BE][PYFMT] migrate PYFMT for torch/_[a-h]*/ to ruff format (#144551) 2025-06-25 06:16:06 +00:00
opaque_object.py [opaque_obj] Add set_payload + docs (#163276) 2025-09-22 20:02:29 +00:00
simple_registry.py [ignore][codex-test] Add typing to simple library registry (#161367) 2025-09-23 02:08:55 +00:00
triton.py Account for triton kernel source code hidden in custom ops properly in AOTAutogradCache (#160120) 2025-08-12 14:11:06 +00:00
utils.py [inductor] respect layout tags for ops with registered lowerings (#159134) 2025-07-31 21:29:40 +00:00