Update type hints across the codebase (#1749)

* Update type hints across the codebase

* Added changelog record
This commit is contained in:
Alex Root Junior 2026-01-02 02:50:46 +02:00 committed by GitHub
parent dcff0f99c7
commit 0306695b61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
307 changed files with 6190 additions and 6385 deletions

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~