mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
fbaf17b333
Convert Union[X, Y] to X | Y and Optional[X] to X | None using ruff rules UP007 and UP045 since torch is 3.10+ Note: we skip testing here - that is the last directory remaining Pull Request resolved: https://github.com/pytorch/pytorch/pull/176458 Approved by: https://github.com/aorenste