Skip to content

Commit

Permalink
ci: correct from checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent c852a39 commit 57501d8
Show file tree
Hide file tree
Showing 55 changed files with 584 additions and 585 deletions.
236 changes: 118 additions & 118 deletions interactions/__init__.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions interactions/api/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,13 @@
from .base import BaseEvent, GuildEvent, RawGatewayEvent

__all__ = (
"processors",
"ApplicationCommandPermissionsUpdate",
"AutocompleteCompletion",
"AutocompleteError",
"AutoModCreated",
"AutoModDeleted",
"AutoModExec",
"AutoModUpdated",
"AutocompleteCompletion",
"AutocompleteError",
"BanCreate",
"BanRemove",
"BaseEvent",
Expand Down Expand Up @@ -141,8 +140,8 @@
"GuildLeft",
"GuildMembersChunk",
"GuildScheduledEventCreate",
"GuildScheduledEventUpdate",
"GuildScheduledEventDelete",
"GuildScheduledEventUpdate",
"GuildScheduledEventUserAdd",
"GuildScheduledEventUserRemove",
"GuildStickersUpdate",
Expand Down Expand Up @@ -188,8 +187,8 @@
"ThreadCreate",
"ThreadDelete",
"ThreadListSync",
"ThreadMembersUpdate",
"ThreadMemberUpdate",
"ThreadMembersUpdate",
"ThreadUpdate",
"TypingStart",
"VoiceStateUpdate",
Expand All @@ -200,4 +199,5 @@
"VoiceUserMute",
"WebhooksUpdate",
"WebsocketReady",
"processors",
)
6 changes: 3 additions & 3 deletions interactions/api/events/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ async def an_event_handler(event: ChannelCreate):
"EntitlementDelete",
"EntitlementUpdate",
"GuildAuditLogEntryCreate",
"GuildAvailable",
"GuildEmojisUpdate",
"GuildJoin",
"GuildLeft",
"GuildMembersChunk",
"GuildScheduledEventCreate",
"GuildScheduledEventUpdate",
"GuildScheduledEventDelete",
"GuildScheduledEventUpdate",
"GuildScheduledEventUserAdd",
"GuildScheduledEventUserRemove",
"GuildStickersUpdate",
"GuildAvailable",
"GuildUnavailable",
"GuildUpdate",
"IntegrationCreate",
Expand Down Expand Up @@ -90,8 +90,8 @@ async def an_event_handler(event: ChannelCreate):
"ThreadCreate",
"ThreadDelete",
"ThreadListSync",
"ThreadMembersUpdate",
"ThreadMemberUpdate",
"ThreadMembersUpdate",
"ThreadUpdate",
"TypingStart",
"VoiceStateUpdate",
Expand Down
28 changes: 14 additions & 14 deletions interactions/api/events/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,31 @@ async def an_event_handler(event: ChannelCreate):
from interactions import Extension, BaseCommand, Listener

__all__ = (
"AutocompleteCompletion",
"AutocompleteError",
"ButtonPressed",
"CallbackAdded",
"CommandCompletion",
"CommandError",
"Component",
"ComponentCompletion",
"ComponentError",
"Connect",
"Disconnect",
"Error",
"ShardConnect",
"ShardDisconnect",
"ExtensionCommandParse",
"ExtensionLoad",
"ExtensionUnload",
"Login",
"ModalCompletion",
"ModalError",
"Ready",
"Resume",
"Select",
"ShardConnect",
"ShardDisconnect",
"Startup",
"WebsocketReady",
"CommandError",
"ComponentError",
"AutocompleteError",
"ModalError",
"CommandCompletion",
"ComponentCompletion",
"AutocompleteCompletion",
"ModalCompletion",
"ExtensionLoad",
"ExtensionUnload",
"ExtensionCommandParse",
"CallbackAdded",
)


Expand Down
6 changes: 3 additions & 3 deletions interactions/api/events/processors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
from .entitlement_events import EntitlementEvents

__all__ = (
"AutoModEvents",
"ChannelEvents",
"EntitlementEvents",
"GuildEvents",
"IntegrationEvents",
"MemberEvents",
"MessageEvents",
"Processor",
"ReactionEvents",
"RoleEvents",
"ScheduledEvents",
"StageEvents",
"ThreadEvents",
"UserEvents",
"VoiceEvents",
"Processor",
"AutoModEvents",
"EntitlementEvents",
)
2 changes: 1 addition & 1 deletion interactions/api/events/processors/_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from interactions.client.smart_cache import GlobalCache
from interactions.api.events.internal import BaseEvent

__all__ = ("Processor", "EventMixinTemplate")
__all__ = ("EventMixinTemplate", "Processor")


class Processor:
Expand Down
2 changes: 1 addition & 1 deletion interactions/api/http/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if TYPE_CHECKING:
from interactions.models.discord.snowflake import Snowflake_Type

__all__ = ("Route", "PAYLOAD_TYPE")
__all__ = ("PAYLOAD_TYPE", "Route")

PAYLOAD_TYPE = dict[str, int | str | bool | list | None]

Expand Down
2 changes: 1 addition & 1 deletion interactions/api/voice/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path
from typing import Union, Optional, TYPE_CHECKING

__all__ = ("AudioBuffer", "BaseAudio", "Audio", "AudioVolume", "RawInputAudio")
__all__ = ("Audio", "AudioBuffer", "AudioVolume", "BaseAudio", "RawInputAudio")

from interactions.client.const import get_logger
from interactions.api.voice.opus import Encoder
Expand Down
2 changes: 1 addition & 1 deletion interactions/api/voice/opus.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import attr

__all__ = ["Encoder", "Decoder"]
__all__ = ["Decoder", "Encoder"]

from interactions.client.const import MISSING, get_logger

Expand Down
56 changes: 28 additions & 28 deletions interactions/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,45 +43,45 @@
from . import utils

__all__ = (
"__version__",
"__repo_url__",
"__py_version__",
"__api_version__",
"get_logger",
"logger_name",
"kwarg_spam",
"DISCORD_EPOCH",
"ACTION_ROW_MAX_ITEMS",
"SELECTS_MAX_OPTIONS",
"SELECT_MAX_NAME_LENGTH",
"CONTEXT_MENU_NAME_LENGTH",
"SLASH_CMD_NAME_LENGTH",
"SLASH_CMD_MAX_DESC_LENGTH",
"SLASH_CMD_MAX_OPTIONS",
"SLASH_OPTION_NAME_LENGTH",
"EMBED_MAX_NAME_LENGTH",
"DISCORD_EPOCH",
"EMBED_FIELD_VALUE_LENGTH",
"EMBED_MAX_DESC_LENGTH",
"EMBED_MAX_FIELDS",
"EMBED_MAX_NAME_LENGTH",
"EMBED_TOTAL_MAX",
"EMBED_FIELD_VALUE_LENGTH",
"POLL_MAX_ANSWERS",
"POLL_MAX_DURATION_HOURS",
"Singleton",
"Sentinel",
"GlobalScope",
"Missing",
"MentionPrefix",
"GLOBAL_SCOPE",
"MISSING",
"MENTION_PREFIX",
"MISSING",
"POLL_MAX_ANSWERS",
"POLL_MAX_DURATION_HOURS",
"PREMIUM_GUILD_LIMITS",
"SELECTS_MAX_OPTIONS",
"SELECT_MAX_NAME_LENGTH",
"SLASH_CMD_MAX_DESC_LENGTH",
"SLASH_CMD_MAX_OPTIONS",
"SLASH_CMD_NAME_LENGTH",
"SLASH_OPTION_NAME_LENGTH",
"Absent",
"AutoShardedClient",
"Client",
"ClientT",
"GlobalScope",
"MentionPrefix",
"Missing",
"Sentinel",
"Singleton",
"T",
"T_co",
"ClientT",
"Client",
"AutoShardedClient",
"smart_cache",
"__api_version__",
"__py_version__",
"__repo_url__",
"__version__",
"errors",
"get_logger",
"kwarg_spam",
"logger_name",
"smart_cache",
"utils",
)
58 changes: 29 additions & 29 deletions interactions/client/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,47 +47,47 @@
from typing import TypeVar, Union, Callable, Coroutine, ClassVar, TYPE_CHECKING

__all__ = (
"__version__",
"__repo_url__",
"__py_version__",
"__api_version__",
"get_logger",
"logger_name",
"kwarg_spam",
"DISCORD_EPOCH",
"ACTION_ROW_MAX_ITEMS",
"SELECTS_MAX_OPTIONS",
"SELECT_MAX_NAME_LENGTH",
"CLIENT_FEATURE_FLAGS",
"CONTEXT_MENU_NAME_LENGTH",
"SLASH_CMD_NAME_LENGTH",
"SLASH_CMD_MAX_DESC_LENGTH",
"SLASH_CMD_MAX_OPTIONS",
"SLASH_OPTION_NAME_LENGTH",
"EMBED_MAX_NAME_LENGTH",
"DISCORD_EPOCH",
"EMBED_FIELD_VALUE_LENGTH",
"EMBED_MAX_DESC_LENGTH",
"EMBED_MAX_FIELDS",
"EMBED_MAX_NAME_LENGTH",
"EMBED_TOTAL_MAX",
"EMBED_FIELD_VALUE_LENGTH",
"Singleton",
"Sentinel",
"GlobalScope",
"Missing",
"MentionPrefix",
"GLOBAL_SCOPE",
"MISSING",
"LIB_PATH",
"MENTION_PREFIX",
"MISSING",
"NON_RESUMABLE_WEBSOCKET_CLOSE_CODES",
"POLL_MAX_ANSWERS",
"POLL_MAX_DURATION_HOURS",
"PREMIUM_GUILD_LIMITS",
"RECOVERABLE_WEBSOCKET_CLOSE_CODES",
"SELECTS_MAX_OPTIONS",
"SELECT_MAX_NAME_LENGTH",
"SLASH_CMD_MAX_DESC_LENGTH",
"SLASH_CMD_MAX_OPTIONS",
"SLASH_CMD_NAME_LENGTH",
"SLASH_OPTION_NAME_LENGTH",
"Absent",
"ClientT",
"GlobalScope",
"MentionPrefix",
"Missing",
"Sentinel",
"Singleton",
"T",
"T_co",
"ClientT",
"LIB_PATH",
"RECOVERABLE_WEBSOCKET_CLOSE_CODES",
"NON_RESUMABLE_WEBSOCKET_CLOSE_CODES",
"CLIENT_FEATURE_FLAGS",
"__api_version__",
"__py_version__",
"__repo_url__",
"__version__",
"get_logger",
"has_client_feature",
"POLL_MAX_ANSWERS",
"POLL_MAX_DURATION_HOURS",
"kwarg_spam",
"logger_name",
)

_ver_info = sys.version_info
Expand Down
50 changes: 25 additions & 25 deletions interactions/client/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,41 @@
from interactions.models.discord.snowflake import Snowflake_Type

__all__ = (
"LibraryException",
"AlreadyDeferred",
"AlreadyResponded",
"BadArgument",
"BadRequest",
"BotException",
"GatewayNotFound",
"LoginError",
"HTTPException",
"CommandCheckFailure",
"CommandException",
"CommandOnCooldown",
"DiscordError",
"BadRequest",
"Forbidden",
"NotFound",
"RateLimited",
"TooManyChanges",
"WebSocketClosed",
"VoiceWebSocketClosed",
"WebSocketRestart",
"EmptyMessageException",
"EphemeralEditException",
"EventLocationNotProvided",
"ExtensionException",
"ExtensionNotFound",
"ExtensionLoadException",
"CommandException",
"CommandOnCooldown",
"ExtensionNotFound",
"Forbidden",
"ForeignWebhookException",
"GatewayNotFound",
"HTTPException",
"InteractionException",
"InteractionMissingAccess",
"LibraryException",
"LoginError",
"MaxConcurrencyReached",
"CommandCheckFailure",
"BadArgument",
"MessageException",
"EmptyMessageException",
"EphemeralEditException",
"NotFound",
"RateLimited",
"ThreadException",
"ThreadOutsideOfGuild",
"InteractionException",
"InteractionMissingAccess",
"AlreadyDeferred",
"AlreadyResponded",
"ForeignWebhookException",
"EventLocationNotProvided",
"TooManyChanges",
"VoiceAlreadyConnected",
"VoiceConnectionTimeout",
"VoiceWebSocketClosed",
"WebSocketClosed",
"WebSocketRestart",
)


Expand Down
Loading

0 comments on commit 57501d8

Please sign in to comment.