Skip to content

Commit fe312f0

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 4742b65 commit fe312f0

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4415,7 +4415,7 @@ async def create_scheduled_event(
44154415
"entity_type could not be resolved. Pass entity_type explicitly "
44164416
"or provide a location with a resolvable type."
44174417
)
4418-
4418+
44194419
payload: dict[str, str | int] = {
44204420
"name": name,
44214421
"scheduled_start_time": scheduled_start_time.isoformat(),

discord/scheduled_events.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ def __init__(
100100
_suppress_deprecation: bool = False,
101101
) -> None:
102102
if not _suppress_deprecation:
103-
warn_deprecated("ScheduledEventLocation", "ScheduledEventEntityMetadata", "2.7")
103+
warn_deprecated(
104+
"ScheduledEventLocation", "ScheduledEventEntityMetadata", "2.7"
105+
)
104106
self._state: ConnectionState | None = state
105-
self.value: str | "StageChannel" | "VoiceChannel" | Object | None
107+
self.value: str | StageChannel | VoiceChannel | Object | None
106108
if value is None:
107109
self.value = None
108110
elif isinstance(value, int):
@@ -321,9 +323,13 @@ def location(self) -> ScheduledEventLocation | None:
321323
if self.entity_metadata is None:
322324
return None
323325
return ScheduledEventLocation(
324-
state=self._state, value=self.entity_metadata.location, _suppress_deprecation=True
326+
state=self._state,
327+
value=self.entity_metadata.location,
328+
_suppress_deprecation=True,
325329
)
326-
return ScheduledEventLocation(state=self._state, value=self.channel_id, _suppress_deprecation=True)
330+
return ScheduledEventLocation(
331+
state=self._state, value=self.channel_id, _suppress_deprecation=True
332+
)
327333

328334
@property
329335
def created_at(self) -> datetime.datetime:

discord/ui/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
__all__ = ("ItemInterface",)
3636

37+
3738
class ComponentLimits:
3839
# View constraints
3940
VIEW_CHILDREN_MAX = 40

0 commit comments

Comments
 (0)