Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chillymosh committed Jun 23, 2024
1 parent 79b81ad commit b91434b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions twitchio/ext/eventsub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ class BaseEvent:
__slots__ = ("_client", "_raw_data", "subscription", "headers")

@overload
def __init__(self, client: EventSubClient, _data: str, request: web.Request): ...
def __init__(self, client: EventSubClient, _data: str, request: web.Request):
...

@overload
def __init__(self, client: EventSubWSClient, _data: dict, request: None): ...
def __init__(self, client: EventSubWSClient, _data: dict, request: None):
...

def __init__(
self, client: Union[EventSubClient, EventSubWSClient], _data: Union[str, dict], request: Optional[web.Request]
Expand Down
4 changes: 1 addition & 3 deletions twitchio/ext/eventsub/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def __init__(self, client: Client, http: http.EventSubHTTP):
self._pump_task: Optional[asyncio.Task] = None
self._timeout: Optional[int] = None
self._session_id: Optional[str] = None
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
)
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
self.remaining_slots: int = 300 # default to 300

def __hash__(self) -> int:
Expand Down

0 comments on commit b91434b

Please sign in to comment.