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