pytorch/torch/_dynamo/variables
Yuanyuan Chen 8de85896e0 Enable ruff rule E721 (#165162)
`E721` checks for object type comparisons using == and other comparison operators. This is useful because it is recommended to use `is` for type comparisons.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165162
Approved by: https://github.com/Skylion007
2025-10-13 01:48:55 +00:00
..
__init__.py [dynamo] Support torch.fx.traceback.annotate (#164678) 2025-10-08 22:41:00 +00:00
base.py [dynamo][guards] More small guard optimizations (#159345) 2025-07-29 18:36:49 +00:00
builder.py [export] Preserve nn_module_stack for aliased nn modules (#164311) 2025-10-01 18:04:33 +00:00
builtin.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
constant.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
ctx_manager.py Revert "[dynamo][annotate] Remove the need of external ctx mgr of preserve_node_meta (#165188)" 2025-10-11 21:38:45 +00:00
dicts.py [1/N] Use "is" in python type comparison (#165037) 2025-10-10 12:36:50 +00:00
distributed.py Fix replacement reconstruct (#164937) 2025-10-09 15:31:23 +00:00
functions.py [dynamo, nested graph breaks] fix nested step graph break related issues (#162737) 2025-10-08 22:02:52 +00:00
higher_order_ops.py [dynamo][executorch] Handle lowered module from executorch delegate specially (#165172) 2025-10-10 23:24:17 +00:00
iter.py [dynamo, nested graph breaks] move cell codegen before side effects codegen (#160601) 2025-10-08 22:02:52 +00:00
lazy.py [dynamo] Avoid recompiling over unused objects (#156891) 2025-07-09 20:14:34 +00:00
lists.py [1/N] Use "is" in python type comparison (#165037) 2025-10-10 12:36:50 +00:00
misc.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
nn_module.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
optimizer.py [Dynamo] Don't guard data ptrs by default with mark_static_address (#162208) 2025-09-12 07:15:10 +00:00
script_object.py [dynamo] Replace unimplemented with unimplemented_v2 in torch/_dynamo/variables/script_object.py (#159343) 2025-08-01 21:30:41 +00:00
sdpa.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
tensor.py Enable ruff rule E721 (#165162) 2025-10-13 01:48:55 +00:00
torch_function.py [dynamo] Be consistent with UserMethodVariable source (#160155) 2025-08-09 04:16:14 +00:00
torch.py [export][dynamo] Fallback to slowpath for MultiHeadAttention for strict export (#164721) 2025-10-09 03:25:15 +00:00
user_defined.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00