[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

@ -4,7 +4,7 @@ import time
import zipfile
from functools import lru_cache
from pathlib import Path
from typing import Any, List
from typing import Any
REPO_ROOT = Path(__file__).resolve().parent.parent.parent
@ -18,7 +18,7 @@ def get_s3_resource() -> Any:
return boto3.client("s3")
def zip_artifact(file_name: str, paths: List[str]) -> None:
def zip_artifact(file_name: str, paths: list[str]) -> None:
"""Zip the files in the paths listed into file_name. The paths will be used
in a glob and should be relative to REPO_ROOT."""