Add None return type to init -- tests (#132352)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/132352
Approved by: https://github.com/ezyang
ghstack dependencies: #132335, #132351
This commit is contained in:
Oguz Ulgen
2024-08-01 00:22:48 -07:00
committed by PyTorch MergeBot
parent a6985c09cb
commit 221350e3a4
157 changed files with 1286 additions and 1286 deletions

View File

@ -705,7 +705,7 @@ class TestAutocast(JitTestCase):
@unittest.skipIf(not TEST_CUDA, "No cuda")
def test_jit_freeze_autocast_constants(self):
class TestModule(torch.nn.Module):
def __init__(self):
def __init__(self) -> None:
super().__init__()
self.x = torch.rand((3, 4), dtype=torch.float).cuda()