Skip to content

Commit dc09807

Browse files
committed
run black
1 parent 3b13fe9 commit dc09807

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

twitchio/ext/eventsub/models.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,19 @@ class ChannelCharityDonationData(EventData):
15761576
The currency that was donated (ex. ``USD``, ``GBP``, ``EUR``)
15771577
"""
15781578

1579-
__slots__ = ("id", "campaign_id", "broadcaster", "user", "charity_name", "charity_description", "charity_logo", "charity_website", "donation_value", "donation_decimal_places", "donation_currency")
1579+
__slots__ = (
1580+
"id",
1581+
"campaign_id",
1582+
"broadcaster",
1583+
"user",
1584+
"charity_name",
1585+
"charity_description",
1586+
"charity_logo",
1587+
"charity_website",
1588+
"donation_value",
1589+
"donation_decimal_places",
1590+
"donation_currency",
1591+
)
15801592

15811593
def __init__(self, client: EventSubClient, data: dict):
15821594
self.id: str = data["id"]
@@ -1591,6 +1603,7 @@ def __init__(self, client: EventSubClient, data: dict):
15911603
self.donation_currency: str = data["amount"]["currency"]
15921604
self.donation_decimal_places: int = data["amount"]["decimal_places"]
15931605

1606+
15941607
_DataType = Union[
15951608
ChannelBanData,
15961609
ChannelUnbanData,
@@ -1623,7 +1636,7 @@ def __init__(self, client: EventSubClient, data: dict):
16231636
ChannelShieldModeEndData,
16241637
ChannelShoutoutCreateData,
16251638
ChannelShoutoutReceiveData,
1626-
ChannelCharityDonationData
1639+
ChannelCharityDonationData,
16271640
]
16281641

16291642

twitchio/ext/eventsub/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,6 @@ async def subscribe_channel_shoutout_receive(
497497
await self._subscribe_with_broadcaster_moderator(
498498
models.SubscriptionTypes.channel_shoutout_receive, broadcaster, moderator, token
499499
)
500-
500+
501501
async def subscribe_channel_charity_donate(self, broadcaster: Union[PartialUser, str, int], token: str):
502502
await self._subscribe_with_broadcaster(models.SubscriptionTypes.channel_charity_donate, broadcaster, token)

0 commit comments

Comments
 (0)