File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -226,12 +226,12 @@ class Client:
226
226
def __init__ (
227
227
self ,
228
228
* ,
229
- loop : asyncio .AbstractEventLoop = MISSING ,
229
+ loop : asyncio .AbstractEventLoop | None = None ,
230
230
** options : Any ,
231
231
):
232
232
# self.ws is set in the connect method
233
233
self .ws : DiscordWebSocket = None # type: ignore
234
- self ._loop : asyncio .AbstractEventLoop = loop
234
+ self ._loop : asyncio .AbstractEventLoop | None = loop
235
235
self ._listeners : dict [str , list [tuple [asyncio .Future , Callable [..., bool ]]]] = (
236
236
{}
237
237
)
@@ -326,7 +326,7 @@ def _handle_ready(self) -> None:
326
326
@property
327
327
def loop (self ) -> asyncio .AbstractEventLoop :
328
328
"""The event loop that the client uses for asynchronous operations."""
329
- if self ._loop is MISSING :
329
+ if self ._loop is None :
330
330
raise RuntimeError ("loop is not set" )
331
331
return self ._loop
332
332
You can’t perform that action at this time.
0 commit comments