Fix link formatting for pydantic in migration docs (#1624)

This commit is contained in:
Сода 2025-01-04 11:36:45 +03:00 committed by GitHub
parent b376949647
commit 0ff25804ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -230,11 +230,11 @@ msgstr ""
#: ../../migration_2_to_3.rst:71 #: ../../migration_2_to_3.rst:71
msgid "" msgid ""
"All API methods are now classes with validation, implemented via " "All API methods are now classes with validation, implemented via "
"`pydantic <https://docs.pydantic.dev/>`. These API calls are also " "`pydantic <https://docs.pydantic.dev/>`_. These API calls are also "
"available as methods in the Bot class." "available as methods in the Bot class."
msgstr "" msgstr ""
"Всі методи API тепер є класами з валідацією, реалізованими через " "Всі методи API тепер є класами з валідацією, реалізованими через "
"`pydantic <https://docs.pydantic.dev/>`. Ці виклики API також доступні як" "`pydantic <https://docs.pydantic.dev/>`_. Ці виклики API також доступні як"
" методи в класі Bot." " методи в класі Bot."
#: ../../migration_2_to_3.rst:74 #: ../../migration_2_to_3.rst:74

View file

@ -83,7 +83,7 @@ Bot API
======= =======
- All API methods are now classes with validation, implemented via - All API methods are now classes with validation, implemented via
`pydantic <https://docs.pydantic.dev/>`. `pydantic <https://docs.pydantic.dev/>`_.
These API calls are also available as methods in the Bot class. These API calls are also available as methods in the Bot class.
- More pre-defined Enums have been added and moved to the `aiogram.enums` sub-package. - More pre-defined Enums have been added and moved to the `aiogram.enums` sub-package.
For example, the chat type enum is now :class:`aiogram.enums.ChatType` instead of :class:`aiogram.types.chat.ChatType`. For example, the chat type enum is now :class:`aiogram.enums.ChatType` instead of :class:`aiogram.types.chat.ChatType`.