Skip to content

Commit b91434b

Browse files
committed
Fix linting
1 parent 79b81ad commit b91434b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

twitchio/ext/eventsub/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@ class BaseEvent:
145145
__slots__ = ("_client", "_raw_data", "subscription", "headers")
146146

147147
@overload
148-
def __init__(self, client: EventSubClient, _data: str, request: web.Request): ...
148+
def __init__(self, client: EventSubClient, _data: str, request: web.Request):
149+
...
149150

150151
@overload
151-
def __init__(self, client: EventSubWSClient, _data: dict, request: None): ...
152+
def __init__(self, client: EventSubWSClient, _data: dict, request: None):
153+
...
152154

153155
def __init__(
154156
self, client: Union[EventSubClient, EventSubWSClient], _data: Union[str, dict], request: Optional[web.Request]

twitchio/ext/eventsub/websocket.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ def __init__(self, client: Client, http: http.EventSubHTTP):
9797
self._pump_task: Optional[asyncio.Task] = None
9898
self._timeout: Optional[int] = None
9999
self._session_id: Optional[str] = None
100-
self._target_user_id: int | None = (
101-
None # each websocket can only have one authenticated user on it for some bizzare reason, but this isnt documented anywhere
102-
)
100+
self._target_user_id: int | None = None # each websocket can only have one authenticated user on it for some bizzare reason, but this isnt documented anywhere
103101
self.remaining_slots: int = 300 # default to 300
104102

105103
def __hash__(self) -> int:

0 commit comments

Comments
 (0)