Skip to content

Commit

Permalink
style: auto fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 24, 2024
1 parent a0058aa commit b92425e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
3 changes: 2 additions & 1 deletion nextcord/cache.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from typing import Dict, Optional, Protocol, Tuple
from collections.abc import Sequence
from typing import Dict, Optional, Protocol, Tuple

from .types.guild import Guild as GuildData
from .types.member import Member as MemberData
Expand All @@ -17,6 +17,7 @@

class BaseCache(Protocol):
"""A non-functional, NotImplemented cache class that any Nextcord and user made cache should subclass."""

def __init__(self, **kwargs) -> None:
pass

Expand Down
2 changes: 1 addition & 1 deletion nextcord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
from .interactions import Interaction
from .invite import Invite
from .iterators import GuildIterator
from .mentions import AllowedMentions
from .member import AsyncMember
from .mentions import AllowedMentions
from .message import AsyncMessage
from .object import Object
from .stage_instance import StageInstance
Expand Down
2 changes: 1 addition & 1 deletion nextcord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
AutoModerationTriggerType,
ChannelType,
ContentFilter,
MFALevel,
NotificationLevel,
NSFWLevel,
MFALevel,
ScheduledEventEntityType,
ScheduledEventPrivacyLevel,
VerificationLevel,
Expand Down
8 changes: 2 additions & 6 deletions nextcord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -4124,7 +4124,7 @@ def create_interaction_response(
*,
type: InteractionResponseType,
data: Optional[interactions.InteractionApplicationCommandCallbackData] = None,
files: Optional[Sequence[File]] = None
files: Optional[Sequence[File]] = None,
) -> Response[None]:
r = Route(
"POST",
Expand All @@ -4139,11 +4139,7 @@ def create_interaction_response(
if data is not None:
payload["data"] = data

return self.request(
r,
json=payload,
files=files
)
return self.request(r, json=payload, files=files)

def get_original_interaction_response(
self,
Expand Down
4 changes: 2 additions & 2 deletions nextcord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import asyncio
import contextlib
from datetime import datetime, timedelta
from typing import TYPE_CHECKING, Any, Dict, Generic, List, Optional, Set, Tuple, TypeVar, Union
from typing import TYPE_CHECKING, Any, Dict, Generic, List, Optional, Tuple, TypeVar, Union

from . import utils
from .channel import ChannelType, PartialMessageable
from .embeds import Embed
from .enums import InteractionResponseType, InteractionType, try_enum, Locale
from .enums import InteractionResponseType, InteractionType, Locale, try_enum
from .errors import ClientException, HTTPException, InteractionResponded, InvalidArgument
from .file import File
from .flags import MessageFlags
Expand Down
2 changes: 1 addition & 1 deletion nextcord/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .flags import MemberFlags
from .object import Object
from .permissions import Permissions
from .user import BaseUser, User, _UserTag, AsyncUser
from .user import AsyncUser, BaseUser, User, _UserTag
from .utils import MISSING

__all__ = (
Expand Down

0 comments on commit b92425e

Please sign in to comment.