mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix(dispatcher): todo
This commit is contained in:
parent
edbae91418
commit
6e65d8fe27
1 changed files with 2 additions and 2 deletions
|
|
@ -27,10 +27,10 @@ log = logging.getLogger(__name__)
|
|||
DEFAULT_RATE_LIMIT = .1
|
||||
|
||||
|
||||
def _ensure_loop(x):
|
||||
def _ensure_loop(x: "asyncio.AbstractEventLoop"):
|
||||
assert isinstance(
|
||||
x, asyncio.AbstractEventLoop
|
||||
), f"Loop must the implementation of {asyncio.AbstractEventLoop!r}, " \
|
||||
), f"Loop must be the implementation of {asyncio.AbstractEventLoop!r}, " \
|
||||
f"not {type(x)!r}"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue