Skip to content

Commit aa1c4e0

Browse files
committed
Fix most of "more than one target found for cross-reference" warnings
1 parent 92183a5 commit aa1c4e0

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

telegram/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Chat(TelegramObject):
4141
username(Optional[str]):
4242
first_name(Optional[str]):
4343
last_name(Optional[str]):
44-
bot (Optional[Bot]): The Bot to use for instance methods
44+
bot (Optional[telegram.Bot]): The Bot to use for instance methods
4545
**kwargs (dict): Arbitrary keyword arguments.
4646
4747
"""

telegram/ext/jobqueue.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def run_once(self, callback, when, context=None, name=None):
166166
name (Optional[str]): The name of the new job. Defaults to ``callback.__name__``
167167
168168
Returns:
169-
Job: The new ``Job`` instance that has been added to the job queue.
169+
telegram.ext.jobqueue.Job: The new ``Job`` instance that has been added to the
170+
job queue.
170171
171172
"""
172173
job = Job(callback, repeat=False, context=context, name=name, job_queue=self)
@@ -201,7 +202,8 @@ def run_repeating(self, callback, interval, first=None, context=None, name=None)
201202
name (Optional[str]): The name of the new job. Defaults to ``callback.__name__``
202203
203204
Returns:
204-
Job: The new ``Job`` instance that has been added to the job queue.
205+
telegram.ext.jobqueue.Job: The new ``Job`` instance that has been added to the
206+
job queue.
205207
206208
"""
207209
job = Job(callback,
@@ -228,7 +230,8 @@ def run_daily(self, callback, time, days=Days.EVERY_DAY, context=None, name=None
228230
name (Optional[str]): The name of the new job. Defaults to ``callback.__name__``
229231
230232
Returns:
231-
Job: The new ``Job`` instance that has been added to the job queue.
233+
telegram.ext.jobqueue.Job: The new ``Job`` instance that has been added to the
234+
job queue.
232235
233236
"""
234237
job = Job(callback,
@@ -366,7 +369,7 @@ class Job(object):
366369
job runs
367370
repeat (bool): If the job runs periodically or only once
368371
name (str): The name of this job
369-
job_queue (JobQueue): The ``JobQueue`` this job belongs to
372+
job_queue (telegram.ext.JobQueue): The ``JobQueue`` this job belongs to
370373
enabled (bool): Boolean property that decides if this job is currently active
371374
372375
Args:

telegram/ext/typehandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TypeHandler(Handler):
2727
Handler class to handle updates of custom types.
2828
2929
Args:
30-
type (type): The ``type`` of updates this handler should process, as
30+
type (class): The ``type`` of updates this handler should process, as
3131
determined by ``isinstance``
3232
callback (function): A function that takes ``bot, update`` as
3333
positional arguments. It will be called when the ``check_update``

telegram/ext/updater.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ class Updater(object):
5959
base_url (Optional[str]):
6060
workers (Optional[int]): Amount of threads in the thread pool for
6161
functions decorated with @run_async
62-
bot (Optional[Bot]): A pre-initialized bot instance. If a pre-initizlied bot is used, it is
63-
the user's responsibility to create it using a `Request` instance with a large enough
64-
connection pool.
62+
bot (Optional[telegram.Bot]): A pre-initialized bot instance. If a pre-initizlied bot is
63+
used, it is the user's responsibility to create it using a `Request` instance with
64+
a large enough connection pool.
6565
user_sig_handler (Optional[function]): Takes ``signum, frame`` as positional arguments.
6666
This will be called when a signal is received, defaults are (SIGINT, SIGTERM, SIGABRT)
6767
setable with Updater.idle(stop_signals=(signals))

telegram/inlinequery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class InlineQuery(TelegramObject):
4040
query (str):
4141
offset (str):
4242
location (optional[:class:`telegram.Location`]):
43-
bot (Optional[Bot]): The Bot to use for instance methods
43+
bot (Optional[telegram.Bot]): The Bot to use for instance methods
4444
**kwargs (dict): Arbitrary keyword arguments.
4545
4646
"""

telegram/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Message(TelegramObject):
109109
migrate_to_chat_id (Optional[int]):
110110
migrate_from_chat_id (Optional[int]):
111111
channel_chat_created (Optional[bool]):
112-
bot (Optional[Bot]): The Bot to use for instance methods
112+
bot (Optional[telegram.Bot]): The Bot to use for instance methods
113113
"""
114114

115115
def __init__(self,

telegram/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class User(TelegramObject):
4343
last_name (Optional[str]): User's or bot's last name
4444
username (Optional[str]): User's or bot's username
4545
language_code (Optional[str]): IETF language tag of the user's language
46-
bot (Optional[Bot]): The Bot to use for instance methods
46+
bot (Optional[telegram.Bot]): The Bot to use for instance methods
4747
"""
4848

4949
def __init__(self,

0 commit comments

Comments
 (0)