mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix uvloop deprecation warning causing pytest not to run
This commit is contained in:
parent
78b1cfb9da
commit
23b0164d4c
1 changed files with 3 additions and 1 deletions
|
|
@ -15,8 +15,10 @@ from .utils.text_decorations import markdown_decoration as md
|
|||
|
||||
with suppress(ImportError):
|
||||
import uvloop as _uvloop
|
||||
import asyncio
|
||||
|
||||
asyncio.set_event_loop_policy(_uvloop.EventLoopPolicy())
|
||||
|
||||
_uvloop.install() # type: ignore[attr-defined,unused-ignore]
|
||||
|
||||
F = MagicFilter()
|
||||
flags = FlagGenerator()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue