Skip to content

Commit

Permalink
Update Stream game_id annotation
Browse files Browse the repository at this point in the history
Update Stream game_id annotation to str
  • Loading branch information
chillymosh committed Feb 4, 2024
1 parent 6785543 commit bf3a9f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitchio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ class Stream:
The current stream ID.
user: :class:`~twitchio.PartialUser`
The user who is streaming.
game_id: :class:`int`
game_id: :class:`str`
Current game ID being played on the channel.
game_name: :class:`str`
Name of the game being played on the channel.
Expand Down Expand Up @@ -1116,7 +1116,7 @@ class Stream:
def __init__(self, http: "TwitchHTTP", data: dict):
self.id: int = data["id"]
self.user = PartialUser(http, data["user_id"], data["user_name"])
self.game_id: int = data["game_id"]
self.game_id: str = data["game_id"]
self.game_name: str = data["game_name"]
self.type: str = data["type"]
self.title: str = data["title"]
Expand Down

0 comments on commit bf3a9f9

Please sign in to comment.