Skip to content

Commit feaa4fc

Browse files
committed
Fix pyright issue
1 parent 18037c9 commit feaa4fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

twitchio/payloads.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class WebsocketSubscriptionData:
7474
The data contained in this class as a :class:`dict`
7575
condition: dict[str, str]
7676
The condition used to subscribe to the subscription as a :class:`dict`.
77-
token_for: str
78-
The User ID used to subscribe to this subscription. This could be the Client Users ID.
77+
token_for: str | None
78+
The User ID used to subscribe to this subscription. This could be the Client Users ID. Could be ``None``.
7979
transport: :class:`~twitchio.eventsub.TransportMethod`
8080
The :class:`~twitchio.eventsub.TransportMethod` enum.
8181
This will always be :attr:`~twitchio.eventsub.TransportMethod.WEBSOCKET`.
@@ -97,7 +97,7 @@ class WebsocketSubscriptionData:
9797
def __init__(self, data: _SubscriptionData) -> None:
9898
self.raw_data = data
9999
self.condition: Condition = data["condition"]
100-
self.token_for: str = data["token_for"]
100+
self.token_for: str | None = data["token_for"]
101101
self.transport: TransportMethod = TransportMethod.WEBSOCKET
102102
self.type: SubscriptionType = data["type"]
103103
self.version: str = data["version"]

0 commit comments

Comments
 (0)