[tasks] make __call__ actually appear in the docs

This commit is contained in:
Sebastian Law 2021-02-21 04:19:10 -08:00 committed by GitHub
parent 6c08f3d344
commit ceab8ff638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class Loop:
return self._next_iteration return self._next_iteration
async def __call__(self, *args, **kwargs): async def __call__(self, *args, **kwargs):
"""|coro| r"""|coro|
Calls the internal callback that the task holds. Calls the internal callback that the task holds.

View File

@ -139,5 +139,6 @@ API Reference
.. autoclass:: discord.ext.tasks.Loop() .. autoclass:: discord.ext.tasks.Loop()
:members: :members:
:special-members: __call__
.. autofunction:: discord.ext.tasks.loop .. autofunction:: discord.ext.tasks.loop