mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
@ -6,7 +6,7 @@ import json
|
||||
import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
from unittest import mock
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ JOB_NAME = "some-job-name"
|
||||
|
||||
@mock.patch("boto3.resource")
|
||||
class TestUploadStats(unittest.TestCase):
|
||||
emitted_metric: Dict[str, Any] = {"did_not_emit": True}
|
||||
emitted_metric: dict[str, Any] = {"did_not_emit": True}
|
||||
|
||||
def mock_put_item(self, **kwargs: Any) -> None:
|
||||
# Utility for mocking putting items into s3. THis will save the emitted
|
||||
|
||||
Reference in New Issue
Block a user