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 @@
|
|||
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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue