Skip to content

Commit

Permalink
Use Tuple instead of tuple type
Browse files Browse the repository at this point in the history
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
  • Loading branch information
mattt committed Jan 9, 2024
1 parent 65ed4c1 commit 0f1a021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions replicate/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import io
import mimetypes
import os
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, Tuple

import httpx

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


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

name = getattr(file, "name", "output")
Expand Down

0 comments on commit 0f1a021

Please sign in to comment.