mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-17 16:46:31 +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
@ -152,7 +152,7 @@ def import_transformers_or_skip():
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
try:
|
||||
from transformers import ( # noqa: Unused
|
||||
from transformers import ( # noqa: F401
|
||||
AutoModelForMaskedLM,
|
||||
BertConfig,
|
||||
)
|
||||
@ -760,7 +760,7 @@ class MultiProcessTestCase(TestCase):
|
||||
self._check_return_codes(elapsed_time)
|
||||
finally:
|
||||
# Close all pipes
|
||||
for pid, pipe in self.pid_to_pipe.items():
|
||||
for pipe in self.pid_to_pipe.values():
|
||||
pipe.close()
|
||||
|
||||
def _check_no_test_errors(self, elapsed_time) -> None:
|
||||
|
||||
Reference in New Issue
Block a user