pytorch/torch/_dynamo
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
..
backends [CUDAGraph] Add operator.mul to skip list for find_input_mutations (#130986) 2024-07-18 17:11:39 +00:00
repro [BE][Easy] fix ruff rule needless-bool (SIM103) (#130206) 2024-07-14 08:17:52 +00:00
variables [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
__init__.py [dynamo][aot autograd] Silently disable default saved tensor hooks during tracing (#123196) 2024-06-14 20:28:08 +00:00
_trace_wrapped_higher_order_op.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
bytecode_analysis.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
bytecode_transformation.py [3.13, dynamo] decompose fused load/store instructions (#130569) 2024-07-22 18:07:40 +00:00
cache_size.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
callback.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
code_context.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
codegen.py [3.13, dynamo] decompose fused load/store instructions (#130569) 2024-07-22 18:07:40 +00:00
compiled_autograd.py typing proxy_tensor.py (#129182) 2024-07-12 23:17:09 +00:00
comptime.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
config.py [export] clean up allow_complex_guards_as_runtime_asserts flag (#130596) 2024-07-12 17:17:11 +00:00
convert_frame.py [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
create_parameter_op.py [RELAND2][dynamo][nn-modules] Trace through nn.Module dunder methods for UnspecializedNNModule (#126578) 2024-06-12 04:09:23 +00:00
current_scope_id.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
debug_utils.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
decorators.py typing fake_tensor.py (#128041) 2024-07-13 06:07:40 +00:00
device_interface.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
eval_frame.py [dynamo] Add a JK kill switch for disabling compile (#131258) 2024-07-21 01:22:31 +00:00
exc.py [export] Filter errors by exception type, add case name (#131327) 2024-07-23 18:01:13 +00:00
external_utils.py [Traceable FSDP][Compiled Autograd] Add queue_callback() support (#126366) 2024-06-18 06:22:14 +00:00
funcname_cache.py [dynamo] better file open method in funcname_cache (#125435) 2024-05-06 20:55:15 +00:00
guards.py [dynamo] Revert https://github.com/pytorch/pytorch/pull/130416 (#131058) 2024-07-19 17:26:24 +00:00
hooks.py
logging.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
mutation_guard.py [RELAND2][dynamo][nn-modules] Trace through nn.Module dunder methods for UnspecializedNNModule (#126578) 2024-06-12 04:09:23 +00:00
output_graph.py [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
polyfill.py support intersection by polyfill (#130672) 2024-07-14 10:44:26 +00:00
profiler.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
replay_record.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
resume_execution.py [BE][Easy] apply autofix for ruff rules unnecessary-collection-call (C408): list() / tuple() / dict() (#130199) 2024-07-11 17:30:28 +00:00
side_effects.py [3.13, dynamo] codegen PUSH_NULL when callable is codegen'd (#129172) 2024-06-22 17:25:23 +00:00
source.py [dynamo] Revert https://github.com/pytorch/pytorch/pull/130416 (#131058) 2024-07-19 17:26:24 +00:00
symbolic_convert.py [3.13, dynamo] support FORMAT_SIMPLE/FORMAT_SPEC (#130751) 2024-07-22 18:07:40 +00:00
tensor_version_op.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
test_case.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
test_minifier_common.py Flip default value for mypy disallow_untyped_defs [1/11] (#127838) 2024-06-08 18:16:33 +00:00
testing.py [BE][Easy] apply autofix for ruff rules unnecessary-collection-call (C408): list() / tuple() / dict() (#130199) 2024-07-11 17:30:28 +00:00
trace_rules.py [BE]: Enable a few additional ruff rules (#130700) 2024-07-17 02:06:04 +00:00
types.py Enhancements to recompiles logs (#130043) 2024-07-09 03:40:56 +00:00
utils.py Updating Types in torch/_dynamo/utils.py (#131001) 2024-07-23 18:25:52 +00:00