Update type hints across the codebase

This commit is contained in:
JRoot Junior 2026-01-02 02:42:14 +02:00
parent dcff0f99c7
commit ee9ddbe3f0
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
306 changed files with 6189 additions and 6385 deletions

View file

@ -2,7 +2,7 @@
editMessageCaption
##################
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.edit_message_caption
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.edit_message_caption(...)
result: Message | bool = await bot.edit_message_caption(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(EditMessageCaption(...))
result: Message | bool = await bot(EditMessageCaption(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
editMessageLiveLocation
#######################
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.edit_message_live_location
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.edit_message_live_location(...)
result: Message | bool = await bot.edit_message_live_location(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(EditMessageLiveLocation(...))
result: Message | bool = await bot(EditMessageLiveLocation(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
editMessageMedia
################
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.edit_message_media
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.edit_message_media(...)
result: Message | bool = await bot.edit_message_media(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(EditMessageMedia(...))
result: Message | bool = await bot(EditMessageMedia(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
editMessageReplyMarkup
######################
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.edit_message_reply_markup
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.edit_message_reply_markup(...)
result: Message | bool = await bot.edit_message_reply_markup(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(EditMessageReplyMarkup(...))
result: Message | bool = await bot(EditMessageReplyMarkup(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
editMessageText
###############
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.edit_message_text
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.edit_message_text(...)
result: Message | bool = await bot.edit_message_text(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(EditMessageText(...))
result: Message | bool = await bot(EditMessageText(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
setGameScore
############
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.set_game_score
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.set_game_score(...)
result: Message | bool = await bot.set_game_score(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(SetGameScore(...))
result: Message | bool = await bot(SetGameScore(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -2,7 +2,7 @@
stopMessageLiveLocation
#######################
Returns: :obj:`Union[Message, bool]`
Returns: :obj:`Message | bool`
.. automodule:: aiogram.methods.stop_message_live_location
:members:
@ -19,7 +19,7 @@ As bot method
.. code-block::
result: Union[Message, bool] = await bot.stop_message_live_location(...)
result: Message | bool = await bot.stop_message_live_location(...)
Method as object
@ -35,7 +35,7 @@ With specific bot
.. code-block:: python
result: Union[Message, bool] = await bot(StopMessageLiveLocation(...))
result: Message | bool = await bot(StopMessageLiveLocation(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~