Skip to content

Commit

Permalink
Fix types.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Apr 10, 2024
1 parent fbc1908 commit 779c25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livekit-rtc/livekit/rtc/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def _retrieve_remote_participant(
participant = self.participants[sid]
return participant

def _retrieve_participant(self, sid: str, identity: str) -> Participant:
def _retrieve_participant(self, sid: str, identity: str) -> Optional[Participant]:
"""Retrieve a participant by sid or identity,
returns the LocalParticipant if sid or identity matches"""
if identity and identity == self.local_participant.identity:
Expand Down

0 comments on commit 779c25b

Please sign in to comment.