pytorch/torch/_library
Aaron Orenstein 5a0068cc69 [BE] mypy: disallow untyped decorators (#131428)
Untyped decorators strip the types from their decorated function so even if the underlying function is fully typed then callers to it don't get any benefit from type annotations.

Step 1 - Enable the error and override in all the offending files.

#131429

Pull Request resolved: https://github.com/pytorch/pytorch/pull/131428
Approved by: https://github.com/justinchuby, https://github.com/oulgen
2024-07-23 21:50:55 +00:00
..
__init__.py [custom_op] triton_op API V0 (#130637) 2024-07-15 13:00:54 +00:00
autograd.py [custom_op] don't invoke autograd.Function when unnecessary (#127976) 2024-06-13 23:38:23 +00:00
custom_ops.py [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
fake_class_registry.py [torchbind] add tracing_mode support (#129586) 2024-07-12 18:01:47 +00:00
fake_impl.py Rename impl_abstract to register_fake, part 2/2 (#123938) 2024-06-14 14:37:24 +00:00
infer_schema.py [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
simple_registry.py Add API for open registration between operators and subclasses (and modes) (#130064) 2024-07-12 14:13:01 +00:00
triton.py [custom_op] triton_op API V0 (#130637) 2024-07-15 13:00:54 +00:00
utils.py [custom ops] Support factory function (#129978) 2024-07-04 00:10:52 +00:00