mirror of
https://github.com/pytorch/pytorch.git
synced 2026-10-25 18:53:39 +08:00
Convert Union[X, Y] to X | Y and Optional[X] to X | None using ruff rules UP007 and UP045 in torch/_inductor. This covers the rest of torch/_ Pull Request resolved: https://github.com/pytorch/pytorch/pull/175870 Approved by: https://github.com/aorenste