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
@ -782,11 +782,11 @@ CompositeImplicitAutograd[alias] (inactive): fn1 :: (Tensor _0) -> Tensor _0 [ b
|
||||
impls = C._dispatch_find_dangling_impls()
|
||||
self.assertEqual(1, len(impls))
|
||||
self.assertEqual(
|
||||
'''\
|
||||
f'''\
|
||||
name: __test::foo
|
||||
schema: (none)
|
||||
CPU: registered at {}:5 :: () -> () [ boxed unboxed ]
|
||||
'''.format(extension_path),
|
||||
CPU: registered at {extension_path}:5 :: () -> () [ boxed unboxed ]
|
||||
''',
|
||||
impls[0])
|
||||
|
||||
def test_dispatch_print_registrations_for_dispatch_key_invalid(self):
|
||||
|
Reference in New Issue
Block a user