File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,15 @@ def _handle_ready(self) -> None:
327
327
def loop (self ) -> asyncio .AbstractEventLoop :
328
328
"""The event loop that the client uses for asynchronous operations."""
329
329
if self ._loop is MISSING :
330
- raise RuntimeError (' loop is not set' )
330
+ raise RuntimeError (" loop is not set" )
331
331
return self ._loop
332
332
333
333
@loop .setter
334
334
def loop (self , value : asyncio .AbstractEventLoop ) -> None :
335
335
if not isinstance (value , asyncio .AbstractEventLoop ):
336
- raise TypeError (f'expected a AbstractEventLoop object, got { value .__class__ .__name__ !r} instead' )
336
+ raise TypeError (
337
+ f"expected a AbstractEventLoop object, got { value .__class__ .__name__ !r} instead"
338
+ )
337
339
self ._loop = value
338
340
339
341
@property
You can’t perform that action at this time.
0 commit comments