mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update type hints across the codebase (#1749)
* Update type hints across the codebase * Added changelog record
This commit is contained in:
parent
dcff0f99c7
commit
0306695b61
307 changed files with 6190 additions and 6385 deletions
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue