Skip to content

Commit 51e8ca7

Browse files
committed
Formatting
Signed-off-by: Mattt Zmuda <[email protected]>
1 parent 86110df commit 51e8ca7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

replicate/file.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import mimetypes
55
import os
66
import pathlib
7-
from typing import Any, BinaryIO, Dict, List, Optional, Tuple, TypedDict, Union
7+
from typing import Any, BinaryIO, Dict, List, Optional, TypedDict, Union
88

99
import httpx
1010
from typing_extensions import NotRequired, Unpack
@@ -132,13 +132,14 @@ async def async_list(self) -> List[File]:
132132
def delete(self, file_id: str) -> None:
133133
"""Delete an uploaded file by its ID."""
134134

135-
_ =self._client._request("DELETE", f"/v1/files/{file_id}")
135+
_ = self._client._request("DELETE", f"/v1/files/{file_id}")
136136

137137
async def async_delete(self, file_id: str) -> None:
138138
"""Delete an uploaded file by its ID asynchronously."""
139139

140140
_ = await self._client._async_request("DELETE", f"/v1/files/{file_id}")
141141

142+
142143
def _create_file_params(
143144
file: Union[BinaryIO, io.IOBase],
144145
**params: Unpack["Files.CreateFileParams"],
@@ -165,6 +166,7 @@ def _create_file_params(
165166
"data": data,
166167
}
167168

169+
168170
def _json_to_file(json: Dict[str, Any]) -> File: # pylint: disable=redefined-outer-name
169171
return File(**json)
170172

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import os
32
from unittest import mock
43

0 commit comments

Comments
 (0)