Skip to content

Commit 753157a

Browse files
committed
fix types
1 parent e9895fa commit 753157a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

livekit-api/livekit/api/sip_service.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import aiohttp
44
import warnings
5-
from typing import Optional
5+
from typing import Optional, Union
66

77
from livekit.protocol.models import ListUpdate
88
from livekit.protocol.sip import (
@@ -52,7 +52,10 @@
5252
"""@private"""
5353

5454

55-
def _dial_timeout(user_timeout: Optional[float], request) -> float:
55+
def _dial_timeout(
56+
user_timeout: Optional[float],
57+
request: Union[CreateSIPParticipantRequest, TransferSIPParticipantRequest],
58+
) -> float:
5659
"""Request timeout (seconds) for a phone-dialing call: the user-supplied
5760
value (or the dial default) raised, when needed, to stay at least
5861
RINGING_TIMEOUT_MARGIN above the request's ringing_timeout."""

0 commit comments

Comments
 (0)