[tasks] Removed Returns from decorator docstring
This commit is contained in:
parent
be5bd27386
commit
9687740217
@ -348,7 +348,7 @@ class Loop:
|
|||||||
|
|
||||||
def loop(*, seconds=0, minutes=0, hours=0, count=None, reconnect=True, loop=None):
|
def loop(*, seconds=0, minutes=0, hours=0, count=None, reconnect=True, loop=None):
|
||||||
"""A decorator that schedules a task in the background for you with
|
"""A decorator that schedules a task in the background for you with
|
||||||
optional reconnect logic.
|
optional reconnect logic. The decorator returns a :class:`Loop`.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
------------
|
------------
|
||||||
@ -375,11 +375,6 @@ def loop(*, seconds=0, minutes=0, hours=0, count=None, reconnect=True, loop=None
|
|||||||
An invalid value was given.
|
An invalid value was given.
|
||||||
TypeError
|
TypeError
|
||||||
The function was not a coroutine.
|
The function was not a coroutine.
|
||||||
|
|
||||||
Returns
|
|
||||||
---------
|
|
||||||
:class:`Loop`
|
|
||||||
The loop helper that handles the background task.
|
|
||||||
"""
|
"""
|
||||||
def decorator(func):
|
def decorator(func):
|
||||||
return Loop(func, seconds=seconds, minutes=minutes, hours=hours,
|
return Loop(func, seconds=seconds, minutes=minutes, hours=hours,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user