Fix global flake8 issues (#124771)

Prior to this `lintrunner --all-files --take FLAKE8` failed.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/124771
Approved by: https://github.com/Skylion007
ghstack dependencies: #124428
This commit is contained in:
Aaron Orenstein
2024-04-24 20:22:25 -07:00
committed by PyTorch MergeBot
parent 609c958281
commit a8574a9719
55 changed files with 213 additions and 211 deletions

View File

@ -2008,7 +2008,7 @@ def min_scalar_type(a: ArrayLike, /):
from ._dtypes import DType
if a.numel() > 1:
# numpy docs: "For non-scalar array a, returns the vectors dtype unmodified."
# numpy docs: "For non-scalar array a, returns the vector's dtype unmodified."
return DType(a.dtype)
if a.dtype == torch.bool: