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
diff --git a/test/test_mps.py b/test/test_mps.py
index f228027..ec67eb8 100644
--- a/test/test_mps.py
+++ b/test/test_mps.py
@@ -8598,13 +8598,13 @@
def _create_basic_net(self):
class Layer(nn.Module):
- def __init__(self):
+ def __init__(self) -> None:
super().__init__()
self.layer_dummy_param = Parameter(torch.empty(3, 5))
self.layer_dummy_buf = Buffer(torch.zeros(1, 3, 3, 7))
class Net(nn.Module):
- def __init__(self):
+ def __init__(self) -> None:
super().__init__()
self.l1 = Layer()
self.dummy_param = Parameter(torch.empty(3, 5))