Skip to content

Commit 1abbde7

Browse files
committed
Inherit from SyncByteStream instead of ByteStream
SyncByteStream is an abstract class; ByteStream is a concrete class that inherits abstracts sync and async byte stream classes Signed-off-by: Mattt Zmuda <[email protected]>
1 parent 5dbda24 commit 1abbde7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replicate/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def base64_encode_file(file: io.IOBase) -> str:
113113
return f"data:{mime_type};base64,{encoded_body}"
114114

115115

116-
class FileOutput(httpx.ByteStream, httpx.AsyncByteStream):
116+
class FileOutput(httpx.SyncByteStream, httpx.AsyncByteStream):
117117
url: str
118118
client: "Client"
119119

0 commit comments

Comments
 (0)