Skip to content

Commit 9d1d5d7

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 973a3d2 commit 9d1d5d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

discord/scheduled_events.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
from .enums import (
3333
ScheduledEventEntityType,
3434
ScheduledEventPrivacyLevel,
35-
ScheduledEventStatus,
3635
ScheduledEventRecurrenceFrequency,
3736
ScheduledEventRecurrenceMonth,
3837
ScheduledEventRecurrenceWeekday,
38+
ScheduledEventStatus,
3939
try_enum,
4040
)
4141
from .errors import ValidationError
@@ -55,8 +55,8 @@
5555
from .guild import Guild
5656
from .member import Member
5757
from .state import ConnectionState
58+
from .types.scheduled_events import ScheduledEvent as ScheduledEventPayload
5859
from .types.scheduled_events import (
59-
ScheduledEvent as ScheduledEventPayload,
6060
ScheduledEventRecurrenceRule as ScheduledEventRecurrenceRulePayload,
6161
)
6262

@@ -255,15 +255,15 @@ def from_data(
255255
def to_payload(self) -> dict[str, Any]:
256256
"""Convert the recurrence rule to an API payload.
257257
258-
Raises
259-
------
260-
ValidationError
261-
If the recurrence rule violates Discord's system limitations.
262-
263258
Returns
264259
-------
265260
dict[str, Any]
266261
The recurrence rule as a dictionary suitable for the Discord API.
262+
263+
Raises
264+
------
265+
ValidationError
266+
If the recurrence rule violates Discord's system limitations.
267267
"""
268268
self.validate()
269269

0 commit comments

Comments
 (0)