mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Annotate context manager.
This commit is contained in:
parent
a57c91067e
commit
77e2d4c44a
1 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
"""
|
||||
Need setup task factory:
|
||||
>>> from aiogram.utils import context
|
||||
>>> loop = asyncio.get_event_loop()
|
||||
>>> loop.set_task_factory(context.task_factory)
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import typing
|
||||
|
||||
|
|
@ -101,5 +108,8 @@ def update_state(data=None, **kwargs):
|
|||
|
||||
|
||||
def check_configured():
|
||||
print('CONFIGURED', get_value(CONFIGURED))
|
||||
"""
|
||||
Check loop is configured
|
||||
:return:
|
||||
"""
|
||||
return get_value(CONFIGURED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue