docs: comments

This commit is contained in:
mpa 2020-08-02 15:16:26 +04:00
parent 680e4c1e9c
commit c39baf1dbb
No known key found for this signature in database
GPG key ID: BCCFBFCCC9B754A8

View file

@ -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