[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:
Aaron Gokaslan
2023-07-22 23:03:32 +00:00
committed by PyTorch MergeBot
parent 53a4b262d2
commit 6d43c89f37
88 changed files with 221 additions and 238 deletions

View File

@ -998,7 +998,7 @@ class PackageExporter:
def _validate_dependency_graph(self):
# 1. Check the graph for any errors inserted during dependency analysis.
for module_name, attrs in self.dependency_graph.nodes.items():
for attrs in self.dependency_graph.nodes.values():
if "error" in attrs:
raise PackagingError(self.dependency_graph, debug=self.debug)