Skip to content

Commit 9e7974a

Browse files
committed
Merge branch 'lukas/data-streams' of https://github.com/livekit/python-sdks into lukas/data-streams
2 parents c5e6c3c + fde9e30 commit 9e7974a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

livekit-rtc/livekit/rtc/data_stream.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BaseStreamInfo(TypedDict):
4040
mime_type: str
4141
topic: str
4242
timestamp: int
43-
size: Optional[int] # Optional means it can be an int or None
43+
size: Optional[int]
4444
attributes: Optional[Dict[str, str]] # Optional for the extensions dictionary
4545

4646

@@ -112,7 +112,6 @@ async def read_all(self) -> str:
112112
@dataclass
113113
class ByteStreamInfo(BaseStreamInfo):
114114
name: str
115-
pass
116115

117116

118117
class ByteStreamReader:

livekit-rtc/livekit/rtc/participant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ async def stream_bytes(
611611
topic: str = "",
612612
) -> ByteStreamWriter:
613613
"""
614-
Returns a ByteStreamWriter that allows to write individual chunks of bytes to a file stream.
614+
Returns a ByteStreamWriter that allows to write individual chunks of bytes to a byte stream.
615615
In cases where you want to simply send a file from the file system use send_file() instead.
616616
"""
617617
writer = ByteStreamWriter(

0 commit comments

Comments
 (0)