Skip to content

Commit b3a5cd4

Browse files
committed
fix doctest
1 parent 071beff commit b3a5cd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

getstream/video/rtc/participants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ def map(self, handler: Callable[[List[models_pb2.Participant]], None]):
7474
A subscription object that can be used to unsubscribe (optional)
7575
7676
Example:
77+
>>> state = ParticipantsState()
7778
>>> def on_participants(participants):
7879
... print(f"Participants: {len(participants)}")
79-
>>> subscription = participants_state.map(on_participants)
80+
>>> subscription = state.map(on_participants)
81+
Participants: 0
8082
"""
8183

8284
# Create a weak reference to the handler

0 commit comments

Comments
 (0)