Fix linting
This commit is contained in:
parent
1a034fc9c4
commit
6f776c1a2e
@ -14,7 +14,9 @@ def use_uvloop():
|
||||
try:
|
||||
import uvloop # type: ignore
|
||||
|
||||
if not isinstance(asyncio.get_event_loop_policy(), uvloop.EventLoopPolicy):
|
||||
if not isinstance(
|
||||
asyncio.get_event_loop_policy(), uvloop.EventLoopPolicy
|
||||
):
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
except ImportError:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user