From ceab8ff638b373cb7769ce6fa9708bd350d7a71d Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Sun, 21 Feb 2021 04:19:10 -0800 Subject: [PATCH] [tasks] make __call__ actually appear in the docs --- discord/ext/tasks/__init__.py | 2 +- docs/ext/tasks/index.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index 9dbc7f9c8..94917ca04 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 13dfbc5e7..55f60932f 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