mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE][Ez]: ISC001 Auto concatenate implicit one line strings (#146408)
Apply ruff rule about implicit string concatenation, this autofixes strings that are all the same type and on the same line. These lines are broken up likely as the result of autoformatters in the past. All fixes are automated using the autofixes in ISC001. Pull Request resolved: https://github.com/pytorch/pytorch/pull/146408 Approved by: https://github.com/justinchuby, https://github.com/janeyx99
This commit is contained in:
committed by
PyTorch MergeBot
parent
f38a2ea0d4
commit
292af3cc89
@ -23,7 +23,7 @@ from torch.utils.mobile_optimizer import optimize_for_mobile
|
||||
|
||||
@unittest.skipUnless(
|
||||
torch.backends.xnnpack.enabled,
|
||||
" XNNPACK must be enabled for these tests." " Please build with USE_XNNPACK=1.",
|
||||
" XNNPACK must be enabled for these tests. Please build with USE_XNNPACK=1.",
|
||||
)
|
||||
@unittest.skipIf(
|
||||
TEST_WITH_TSAN,
|
||||
@ -231,7 +231,7 @@ class TestXNNPACKOps(TestCase):
|
||||
|
||||
@unittest.skipUnless(
|
||||
torch.backends.xnnpack.enabled,
|
||||
" XNNPACK must be enabled for these tests." " Please build with USE_XNNPACK=1.",
|
||||
" XNNPACK must be enabled for these tests. Please build with USE_XNNPACK=1.",
|
||||
)
|
||||
@unittest.skipIf(
|
||||
TEST_WITH_TSAN,
|
||||
@ -753,7 +753,7 @@ class TestXNNPACKSerDes(TestCase):
|
||||
|
||||
@unittest.skipUnless(
|
||||
torch.backends.xnnpack.enabled,
|
||||
" XNNPACK must be enabled for these tests." " Please build with USE_XNNPACK=1.",
|
||||
" XNNPACK must be enabled for these tests. Please build with USE_XNNPACK=1.",
|
||||
)
|
||||
@unittest.skipIf(
|
||||
TEST_WITH_TSAN,
|
||||
@ -1241,7 +1241,7 @@ class TestXNNPACKRewritePass(TestCase):
|
||||
|
||||
@unittest.skipUnless(
|
||||
torch.backends.xnnpack.enabled,
|
||||
" XNNPACK must be enabled for these tests." " Please build with USE_XNNPACK=1.",
|
||||
" XNNPACK must be enabled for these tests. Please build with USE_XNNPACK=1.",
|
||||
)
|
||||
@unittest.skipIf(
|
||||
TEST_WITH_TSAN,
|
||||
|
Reference in New Issue
Block a user