Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion livekit-rtc/livekit/rtc/audio_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(
sample_rate: int,
num_channels: int,
samples_per_channel: int,
userdata: dict[str, Any] = {},
Comment thread
1egoman marked this conversation as resolved.
Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
userdata: dict[str, Any] = {},
*,
userdata: dict[str, Any] = {},

Let's make it a kwarg

) -> None:
"""
Initialize an AudioFrame instance.
Expand Down Expand Up @@ -64,7 +65,7 @@ def __init__(
self._sample_rate = sample_rate
self._num_channels = num_channels
self._samples_per_channel = samples_per_channel
self._userdata: dict[str, Any] = {}
self._userdata: dict[str, Any] = userdata

@staticmethod
def create(sample_rate: int, num_channels: int, samples_per_channel: int) -> "AudioFrame":
Expand Down
Loading