aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/tasks/__init__.py2
-rw-r--r--docs/ext/tasks/index.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py
index 9dbc7f9c..94917ca0 100644
--- a/discord/ext/tasks/__init__.py
+++ b/discord/ext/tasks/__init__.py
@@ -161,7 +161,7 @@ class Loop:
return self._next_iteration
async def __call__(self, *args, **kwargs):
- """|coro|
+ r"""|coro|
Calls the internal callback that the task holds.
diff --git a/docs/ext/tasks/index.rst b/docs/ext/tasks/index.rst
index 13dfbc5e..55f60932 100644
--- a/docs/ext/tasks/index.rst
+++ b/docs/ext/tasks/index.rst
@@ -139,5 +139,6 @@ API Reference
.. autoclass:: discord.ext.tasks.Loop()
:members:
+ :special-members: __call__
.. autofunction:: discord.ext.tasks.loop