mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Docs: Fix annotations (#1634)
* Docs: Fix annotations * Add file CHANGES/1634.doc.rst
This commit is contained in:
parent
d8b9ce1be9
commit
7b07338851
3 changed files with 4 additions and 3 deletions
1
CHANGES/1634.doc.rst
Normal file
1
CHANGES/1634.doc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Update :code:`data: Dict[Any, str]` to :code:`data: Dict[str, Any]`
|
||||
|
|
@ -12,7 +12,7 @@ By default you will need to override only method :code:`async def handle(self) -
|
|||
|
||||
This class also has a default initializer and you don't need to change it.
|
||||
The initializer accepts the incoming event and all contextual data, which
|
||||
can be accessed from the handler through attributes: :code:`event: TelegramEvent` and :code:`data: Dict[Any, str]`
|
||||
can be accessed from the handler through attributes: :code:`event: TelegramEvent` and :code:`data: Dict[str, Any]`
|
||||
|
||||
If an instance of the bot is specified in context data or current context it can be accessed through *bot* class attribute.
|
||||
|
||||
|
|
|
|||
|
|
@ -47,12 +47,12 @@ msgid ""
|
|||
"This class also has a default initializer and you don't need to change "
|
||||
"it. The initializer accepts the incoming event and all contextual data, "
|
||||
"which can be accessed from the handler through attributes: :code:`event: "
|
||||
"TelegramEvent` and :code:`data: Dict[Any, str]`"
|
||||
"TelegramEvent` and :code:`data: Dict[str, Any]`"
|
||||
msgstr ""
|
||||
"Цей клас також має ініціалізатор за замовчуванням, і вам не потрібно його"
|
||||
" змінювати. Ініціалізатор приймає поточну подію та всі контекстні дані, "
|
||||
"доступ до яких можна отримати з обробника через атрибути: :code:`event: "
|
||||
"TelegramEvent` and :code:`data: Dict[Any, str]`"
|
||||
"TelegramEvent` and :code:`data: Dict[str, Any]`"
|
||||
|
||||
#: ../../dispatcher/class_based_handlers/base.rst:17
|
||||
#, fuzzy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue