mypy 1.16.0 (#155821)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/155821
Approved by: https://github.com/ezyang, https://github.com/zou3519
This commit is contained in:
Aaron Orenstein
2025-06-13 21:30:46 -07:00
committed by PyTorch MergeBot
parent ce79056471
commit e95e8eed0a
65 changed files with 151 additions and 141 deletions

View File

@ -299,7 +299,7 @@ class LBFGS(Optimizer):
return loss, flat_grad
@torch.no_grad()
def step(self, closure):
def step(self, closure): # type: ignore[override]
"""Perform a single optimization step.
Args: