PEP585: More UP006 fixes (#146392)

This should be the final PR before we can enable RUFF UP006.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146392
Approved by: https://github.com/justinchuby, https://github.com/albanD, https://github.com/Skylion007
This commit is contained in:
Aaron Orenstein
2025-02-19 14:37:18 -08:00
committed by PyTorch MergeBot
parent 76ad19a549
commit db4ce78d46
81 changed files with 283 additions and 329 deletions

View File

@ -1,5 +1,5 @@
# mypy: allow-untyped-defs
from typing import List, Optional, Tuple, Union
from typing import Optional, Union
import torch
import torch.nn.functional as F