Skip to content

Commit ea34b84

Browse files
authored
fix: access token VideoGrants types (#112)
1 parent 2352d08 commit ea34b84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

livekit-api/livekit/api/access_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import datetime
1919
import os
2020
import jwt
21-
from typing import Optional
21+
from typing import Optional, List
2222

2323
DEFAULT_TTL = datetime.timedelta(hours=6)
2424
DEFAULT_LEEWAY = datetime.timedelta(minutes=1)
@@ -44,7 +44,7 @@ class VideoGrants:
4444
# TrackSource types that a participant may publish.
4545
# When set, it supercedes CanPublish. Only sources explicitly set here can be
4646
# published
47-
can_publish_sources: list[str] = dataclasses.field(default_factory=list)
47+
can_publish_sources: List[str] = dataclasses.field(default_factory=list)
4848

4949
# by default, a participant is not allowed to update its own metadata
5050
can_update_own_metadata: bool = False

0 commit comments

Comments
 (0)