Skip to content

Commit 3f0783a

Browse files
committed
change from = MISSING to = None
1 parent 81e61b8 commit 3f0783a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ class Client:
226226
def __init__(
227227
self,
228228
*,
229-
loop: asyncio.AbstractEventLoop = MISSING,
229+
loop: asyncio.AbstractEventLoop | None = None,
230230
**options: Any,
231231
):
232232
# self.ws is set in the connect method
233233
self.ws: DiscordWebSocket = None # type: ignore
234-
self._loop: asyncio.AbstractEventLoop = loop
234+
self._loop: asyncio.AbstractEventLoop | None = loop
235235
self._listeners: dict[str, list[tuple[asyncio.Future, Callable[..., bool]]]] = (
236236
{}
237237
)
@@ -326,7 +326,7 @@ def _handle_ready(self) -> None:
326326
@property
327327
def loop(self) -> asyncio.AbstractEventLoop:
328328
"""The event loop that the client uses for asynchronous operations."""
329-
if self._loop is MISSING:
329+
if self._loop is None:
330330
raise RuntimeError("loop is not set")
331331
return self._loop
332332

0 commit comments

Comments
 (0)