[3/N] Apply py39 ruff fixes (#142115)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/142115
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2024-12-11 17:50:07 +00:00
committed by PyTorch MergeBot
parent f7e621c3ce
commit 82aaf64422
31 changed files with 137 additions and 91 deletions

View File

@ -2,7 +2,11 @@ from __future__ import annotations
from copy import copy
from functools import total_ordering
from typing import Any, Iterable
from typing import Any, TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import Iterable
class TestRun: