Fix quicklints (#72256)

Summary:
Regression introduced by https://github.com/pytorch/pytorch/pull/71854

Pull Request resolved: https://github.com/pytorch/pytorch/pull/72256

Reviewed By: dagitses

Differential Revision: D33978449

Pulled By: malfet

fbshipit-source-id: 32c99cc95f0e1011a5d241875d47a78f6c869e0e
(cherry picked from commit ffa0aa8530c5ca8e0a17634d6e3de0c88e674ed6)
This commit is contained in:
Nikita Shulga
2022-02-03 07:13:09 -08:00
committed by PyTorch MergeBot
parent 0bb3158eae
commit b26801276f

View File

@ -359,7 +359,7 @@ class TestStaticModule(TestCase):
torch.testing.assert_close(o_ref[i], o_test[i]) torch.testing.assert_close(o_ref[i], o_test[i])
def test_create_object(self): def test_create_object(self):
class Foo: # noqa class Foo: # noqa: B903
def __init__(self, x: torch.Tensor) -> None: def __init__(self, x: torch.Tensor) -> None:
self.x = x self.x = x