mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE]: Update Ruff to 0.0.280 (#105724)
Removes unusued loop values in python dictionary iteration. Automated fix from Ruff master Pull Request resolved: https://github.com/pytorch/pytorch/pull/105724 Approved by: https://github.com/ezyang, https://github.com/janeyx99
This commit is contained in:
committed by
PyTorch MergeBot
parent
53a4b262d2
commit
6d43c89f37
@ -307,7 +307,7 @@ def get_upgrader_bytecode_function_to_index_map(
|
||||
upgrader_bytecode_function_to_index_map = {}
|
||||
index = 0
|
||||
for upgrader_bytecode in upgrader_dict:
|
||||
for upgrader_name, bytecode in upgrader_bytecode.items():
|
||||
for upgrader_name in upgrader_bytecode.keys():
|
||||
if upgrader_name in EXCLUE_UPGRADER_SET:
|
||||
continue
|
||||
upgrader_bytecode_function_to_index_map[upgrader_name] = index
|
||||
|
||||
Reference in New Issue
Block a user