Skip to content

Commit 0f1a021

Browse files
committed
Use Tuple instead of tuple type
Signed-off-by: Mattt Zmuda <[email protected]>
1 parent 65ed4c1 commit 0f1a021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

replicate/files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import mimetypes
44
import os
5-
from typing import Any, Dict, List, Optional
5+
from typing import Any, Dict, List, Optional, Tuple
66

77
import httpx
88

@@ -119,7 +119,7 @@ async def async_delete(self, file_id: str) -> File:
119119
return _json_to_file(resp.json())
120120

121121

122-
def _file_content(file: io.IOBase) -> tuple[str, io.IOBase, str]:
122+
def _file_content(file: io.IOBase) -> Tuple[str, io.IOBase, str]:
123123
"""Get the file content details including name, file object and content type."""
124124

125125
name = getattr(file, "name", "output")

0 commit comments

Comments
 (0)