Skip to content

Commit

Permalink
Fix Inconsistent Type Hints for timeout Parameter of `Bot.get_updat…
Browse files Browse the repository at this point in the history
…es` (#3709)
  • Loading branch information
revolter committed May 19, 2023
1 parent 57c780c commit 4f15a7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion telegram/_bot.py
Expand Up @@ -3586,7 +3586,7 @@ async def get_updates(
self,
offset: Optional[int] = None,
limit: Optional[int] = None,
timeout: Optional[float] = None,
timeout: Optional[int] = None,
allowed_updates: Optional[Sequence[str]] = None,
*,
read_timeout: float = 2,
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_application.py
Expand Up @@ -673,7 +673,7 @@ def run_polling(
Args:
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
Telegram in seconds. Default is ``0.0``.
timeout (:obj:`float`, optional): Passed to
timeout (:obj:`int`, optional): Passed to
:paramref:`telegram.Bot.get_updates.timeout`. Default is ``10`` seconds.
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_extbot.py
Expand Up @@ -531,7 +531,7 @@ async def get_updates(
self,
offset: Optional[int] = None,
limit: Optional[int] = None,
timeout: Optional[float] = None,
timeout: Optional[int] = None,
allowed_updates: Optional[Sequence[str]] = None,
*,
read_timeout: float = 2,
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_updater.py
Expand Up @@ -202,7 +202,7 @@ async def start_polling(
Args:
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
Telegram in seconds. Default is ``0.0``.
timeout (:obj:`float`, optional): Passed to
timeout (:obj:`int`, optional): Passed to
:paramref:`telegram.Bot.get_updates.timeout`. Defaults to ``10`` seconds.
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
Expand Down

0 comments on commit 4f15a7f

Please sign in to comment.