Fix linting... *sigh*

This commit is contained in:
prryplatypus 2021-10-23 21:02:03 +02:00
parent 2ff45ccfb1
commit 1908eb5a02
No known key found for this signature in database
GPG Key ID: 6687E128FB70819B
2 changed files with 2 additions and 3 deletions

View File

@ -12,6 +12,7 @@ UVLOOP_INSTALLED = False
try:
import uvloop # type: ignore # noqa
UVLOOP_INSTALLED = True
except ImportError:
pass

View File

@ -12,9 +12,7 @@ def use_uvloop() -> None:
"""
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())