mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 00:27:46 +01:00
Fix Inconsistent Type Hints for timeout
Parameter of Bot.get_updates
(#3709)
This commit is contained in:
parent
57c780c62f
commit
4f15a7feee
4 changed files with 4 additions and 4 deletions
|
@ -3586,7 +3586,7 @@ class Bot(TelegramObject, AsyncContextManager["Bot"]):
|
||||||
self,
|
self,
|
||||||
offset: Optional[int] = None,
|
offset: Optional[int] = None,
|
||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
timeout: Optional[float] = None,
|
timeout: Optional[int] = None,
|
||||||
allowed_updates: Optional[Sequence[str]] = None,
|
allowed_updates: Optional[Sequence[str]] = None,
|
||||||
*,
|
*,
|
||||||
read_timeout: float = 2,
|
read_timeout: float = 2,
|
||||||
|
|
|
@ -673,7 +673,7 @@ class Application(Generic[BT, CCT, UD, CD, BD, JQ], AsyncContextManager["Applica
|
||||||
Args:
|
Args:
|
||||||
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
|
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
|
||||||
Telegram in seconds. Default is ``0.0``.
|
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.
|
:paramref:`telegram.Bot.get_updates.timeout`. Default is ``10`` seconds.
|
||||||
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
|
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
|
||||||
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
|
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
|
||||||
|
|
|
@ -531,7 +531,7 @@ class ExtBot(Bot, Generic[RLARGS]):
|
||||||
self,
|
self,
|
||||||
offset: Optional[int] = None,
|
offset: Optional[int] = None,
|
||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
timeout: Optional[float] = None,
|
timeout: Optional[int] = None,
|
||||||
allowed_updates: Optional[Sequence[str]] = None,
|
allowed_updates: Optional[Sequence[str]] = None,
|
||||||
*,
|
*,
|
||||||
read_timeout: float = 2,
|
read_timeout: float = 2,
|
||||||
|
|
|
@ -202,7 +202,7 @@ class Updater(AsyncContextManager["Updater"]):
|
||||||
Args:
|
Args:
|
||||||
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
|
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
|
||||||
Telegram in seconds. Default is ``0.0``.
|
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.
|
:paramref:`telegram.Bot.get_updates.timeout`. Defaults to ``10`` seconds.
|
||||||
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
|
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
|
||||||
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
|
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
|
||||||
|
|
Loading…
Reference in a new issue