Add some minor typing

This commit is contained in:
DevilXD committed 2022-04-19 17:40:22 +02:00
1 parent 3fb8a3e089
commit dea5b51fed
1 file changed
+1 -1
+1 -1
View File
@@ -941,7 +941,7 @@ class Twitch:
watching_channel = self.watching_channel.get_with_default(channel)
drops: list[TimedDrop] = []
strict_drops: list[TimedDrop] = []
game = watching_channel is not None and watching_channel.game or None
game: Game | None = watching_channel is not None and watching_channel.game or None
for campaign in self.inventory:
if campaign.game in self.games and campaign.can_earn(watching_channel):
new_drops = [drop for drop in campaign.drops if drop.can_earn(watching_channel)]