mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
docs: comments
This commit is contained in:
parent
680e4c1e9c
commit
c39baf1dbb
1 changed files with 3 additions and 1 deletions
|
|
@ -110,9 +110,11 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
|
|||
self._setup_filters()
|
||||
|
||||
@property
|
||||
def loop(self) -> asyncio.AbstractEventLoop:
|
||||
def loop(self) -> typing.Optional[asyncio.AbstractEventLoop]:
|
||||
# for the sake of backward compatibility
|
||||
# lib internally must delegate tasks with respect to _main_loop attribute
|
||||
# however should never be used by the library itself
|
||||
# use more generic approaches from asyncio's namespace
|
||||
return self._main_loop
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue