jobqueue: fix docstring

This commit is contained in:
Noam Meltzer 2016-03-01 20:20:51 +02:00
parent 218e22631c
commit f0e7a3316c
2 changed files with 3 additions and 2 deletions

View file

@ -41,10 +41,9 @@ class JobQueue(object):
Args:
bot (Bot): The bot instance that should be passed to the jobs
Keyword Args:
tick_interval (Optional[float]): The interval this queue should check
the newest task in seconds. Defaults to 1.0
"""
def __init__(self, bot, tick_interval=1.0):

View file

@ -58,6 +58,8 @@ class Updater:
workers (Optional[int]): Amount of threads in the thread pool for
functions decorated with @run_async
bot (Optional[Bot]):
job_queue_tick_interval(Optional[float]): The interval the queue should
be checked for new tasks. Defaults to 1.0
Raises:
ValueError: If both `token` and `bot` are passed or none of them.