Files
croccybot/bot/utils/ui/__init__.py

21 lines
498 B
Python

import asyncio
import logging
from .. import util_babel
logger = logging.getLogger(__name__)
from .hooked import *
from .leo import *
from .micros import *
from .pagers import *
from .transformed import *
# def create_task_in(coro, context: Context):
# """
# Transitional.
# Since py3.10 asyncio does not support context instantiation,
# this helper method runs `asyncio.create_task(coro)` inside the given context.
# """
# return context.run(asyncio.create_task, coro)