Skip to content

Commit

Permalink
Fix Prediction top_predictors
Browse files Browse the repository at this point in the history
  • Loading branch information
chillymosh committed Dec 28, 2024
1 parent 20c232c commit 1556f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitchio/models/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __init__(
self.users: int | None = int(users) if users is not None else None
channel_points = data.get("channel_points")
self.channel_points: int | None = int(channel_points) if channel_points is not None else None
self.top_predictors: list[Predictor] = [Predictor(d, http=http) for d in data.get("top_predictors", [])]
self.top_predictors: list[Predictor] = [Predictor(d, http=http) for d in data.get("top_predictors") or []]

@property
def color(self) -> str:
Expand Down

0 comments on commit 1556f41

Please sign in to comment.