mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 23:39:50 +00:00
[tasks] make __call__ actually appear in the docs
This commit is contained in:
parent
6c08f3d344
commit
ceab8ff638
@ -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.
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user