Skip to content

Commit c2cccfd

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 303b37a commit c2cccfd

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

discord/channel.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
Iterable,
3434
Mapping,
3535
NamedTuple,
36-
Optional,
3736
TypeVar,
38-
Union,
3937
overload,
4038
)
4139

@@ -3241,8 +3239,7 @@ class VoiceChannelEffectAnimation(NamedTuple):
32413239
type: VoiceChannelEffectAnimationType
32423240

32433241

3244-
class VoiceChannelSoundEffect(PartialSoundboardSound):
3245-
...
3242+
class VoiceChannelSoundEffect(PartialSoundboardSound): ...
32463243

32473244

32483245
class VoiceChannelEffectSendEvent:

discord/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
from .member import Member
7373
from .message import Message
7474
from .poll import Poll
75-
from .voice_client import VoiceProtocol
7675
from .soundboard import SoundboardSound
76+
from .voice_client import VoiceProtocol
7777

7878
__all__ = ("Client",)
7979

discord/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import logging
3030
import sys
3131
import weakref
32-
from typing import TYPE_CHECKING, Any, Coroutine, Iterable, Optional, Sequence, TypeVar
32+
from typing import TYPE_CHECKING, Any, Coroutine, Iterable, Sequence, TypeVar
3333
from urllib.parse import quote as _uriquote
3434

3535
import aiohttp

discord/raw_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
ThreadMembersUpdateEvent,
6464
ThreadUpdateEvent,
6565
TypingEvent,
66-
VoiceChannelStatusUpdateEvent,
6766
)
6867
from .types.raw_models import VoiceChannelEffectSendEvent as VoiceChannelEffectSend
68+
from .types.raw_models import VoiceChannelStatusUpdateEvent
6969
from .user import User
7070

7171

discord/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ def create_message(
20042004
return Message(state=self, channel=channel, data=data)
20052005

20062006
def parse_voice_channel_effect_send(self, data) -> None:
2007-
json = __import__("json")
2007+
__import__("json")
20082008
if sound_id := int(data.get("sound_id", 0)):
20092009
sound = self._get_sound(sound_id)
20102010
if sound is None:

discord/types/channel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
from .snowflake import Snowflake
3535
from .threads import ThreadArchiveDuration, ThreadMember, ThreadMetadata
3636
from .user import User
37-
from .emoji import PartialEmoji
3837

3938
OverwriteType = Literal[0, 1]
4039

@@ -189,7 +188,7 @@ class VoiceChannelEffectSendEvent(TypedDict):
189188
channel_id: Snowflake
190189
guild_id: Snowflake
191190
user_id: Snowflake
192-
sound_id: Union[Snowflake, int]
191+
sound_id: Snowflake | int
193192
sound_volume: float
194193
emoji: PartialEmoji | None
195194
animation_type: int

0 commit comments

Comments
 (0)