mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Upgrade to py12 compatible aiohttp beta version * Fix uvloop deprecation warning causing pytest not to run * Fix test due to asyncio task scheduling race condition * Fix test_state_in_unknown_class for Python 3.12+ due to PEP 678 changes * Add Python 3.12 support in GitHub Actions and project configurations * Add changelog entry --------- Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
41 lines
939 B
Python
41 lines
939 B
Python
from contextlib import suppress
|
|
|
|
from aiogram.dispatcher.flags import FlagGenerator
|
|
|
|
from . import enums, methods, types
|
|
from .__meta__ import __api_version__, __version__
|
|
from .client import session
|
|
from .client.bot import Bot
|
|
from .dispatcher.dispatcher import Dispatcher
|
|
from .dispatcher.middlewares.base import BaseMiddleware
|
|
from .dispatcher.router import Router
|
|
from .utils.magic_filter import MagicFilter
|
|
from .utils.text_decorations import html_decoration as html
|
|
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())
|
|
|
|
|
|
F = MagicFilter()
|
|
flags = FlagGenerator()
|
|
|
|
__all__ = (
|
|
"__api_version__",
|
|
"__version__",
|
|
"types",
|
|
"methods",
|
|
"enums",
|
|
"Bot",
|
|
"session",
|
|
"Dispatcher",
|
|
"Router",
|
|
"BaseMiddleware",
|
|
"F",
|
|
"html",
|
|
"md",
|
|
"flags",
|
|
)
|