Skip to content

Commit 543dec8

Browse files
committed
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord into get_or_fetch
2 parents f13e86c + cb38bd7 commit 543dec8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

discord/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
from .threads import Thread
7070
from .ui.view import View
7171
from .user import ClientUser, User
72-
from .utils import _FETCHABLE, MISSING, _D
72+
from .utils import _D, _FETCHABLE, MISSING
7373
from .voice_client import VoiceClient
7474
from .webhook import Webhook
7575
from .widget import Widget
@@ -248,9 +248,9 @@ def __init__(
248248
self.loop: asyncio.AbstractEventLoop = (
249249
asyncio.get_event_loop() if loop is None else loop
250250
)
251-
self._listeners: dict[
252-
str, list[tuple[asyncio.Future, Callable[..., bool]]]
253-
] = {}
251+
self._listeners: dict[str, list[tuple[asyncio.Future, Callable[..., bool]]]] = (
252+
{}
253+
)
254254
self.shard_id: int | None = options.get("shard_id")
255255
self.shard_count: int | None = options.get("shard_count")
256256

@@ -1205,13 +1205,13 @@ async def get_or_fetch(
12051205

12061206
@overload
12071207
async def get_or_fetch(
1208-
self: "Client",
1208+
self: Client,
12091209
object_type: type[_FETCHABLE],
12101210
object_id: int,
12111211
) -> _FETCHABLE: ...
12121212

12131213
async def get_or_fetch(
1214-
self: "Client",
1214+
self: Client,
12151215
object_type: type[_FETCHABLE],
12161216
object_id: int | None,
12171217
default: _D = MISSING,

discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
from .sticker import GuildSticker
8686
from .threads import Thread, ThreadMember
8787
from .user import User
88-
from .utils import _FETCHABLE, _D
88+
from .utils import _D, _FETCHABLE
8989
from .welcome_screen import WelcomeScreen, WelcomeScreenChannel
9090
from .widget import Widget
9191

0 commit comments

Comments
 (0)