diff --git a/CHANGES/1302.doc b/CHANGES/1302.doc.rst similarity index 68% rename from CHANGES/1302.doc rename to CHANGES/1302.doc.rst index 80cc5492..31220d96 100644 --- a/CHANGES/1302.doc +++ b/CHANGES/1302.doc.rst @@ -1 +1 @@ -Corrected grammatical errors, improved sentence structures, translation for migration 2.x-3.x \ No newline at end of file +Corrected grammatical errors, improved sentence structures, translation for migration 2.x-3.x diff --git a/CHANGES/1331.misc b/CHANGES/1331.misc.rst similarity index 74% rename from CHANGES/1331.misc rename to CHANGES/1331.misc.rst index 375f975c..38d7efa4 100644 --- a/CHANGES/1331.misc +++ b/CHANGES/1331.misc.rst @@ -1 +1 @@ -Prevent update handling task pointers from being garbage collected, backport from 2.x \ No newline at end of file +Prevent update handling task pointers from being garbage collected, backport from 2.x diff --git a/CHANGES/1332.bugfix.rst b/CHANGES/1332.bugfix.rst index 004cfd1d..9cf7d48c 100644 --- a/CHANGES/1332.bugfix.rst +++ b/CHANGES/1332.bugfix.rst @@ -1 +1 @@ - Fixed ``parse_mode`` in ``send_copy`` helper. Disable by default. + Fixed :code:`parse_mode` argument in the in :code:`Message.send_copy` shortcut. Disable by default. diff --git a/CHANGES/1343.feature.rst b/CHANGES/1343.feature.rst index 6ae25cd3..80960dc7 100644 --- a/CHANGES/1343.feature.rst +++ b/CHANGES/1343.feature.rst @@ -1 +1 @@ -The new FSM strategy CHAT_TOPIC, which sets the state for the entire topic in the chat, also works in private messages and regular groups without topics. +Added the new FSM strategy :code:`CHAT_TOPIC`, which sets the state for the entire topic in the chat, also works in private messages and regular groups without topics. diff --git a/CHANGES/1360.bugfix.rst b/CHANGES/1360.bugfix.rst index e02d0ea4..b2a272b1 100644 --- a/CHANGES/1360.bugfix.rst +++ b/CHANGES/1360.bugfix.rst @@ -1 +1 @@ -Added current handler to filters, so that flags can be retrieved from it. +Added ability to get handler flags from filters. diff --git a/CHANGES/1361.misc b/CHANGES/1361.misc deleted file mode 100644 index 6e6413d8..00000000 --- a/CHANGES/1361.misc +++ /dev/null @@ -1 +0,0 @@ -Added pydantic v2.5 support. diff --git a/CHANGES/1361.misc.rst b/CHANGES/1361.misc.rst new file mode 100644 index 00000000..9b1fe953 --- /dev/null +++ b/CHANGES/1361.misc.rst @@ -0,0 +1 @@ +Added :code:`pydantic` v2.5 support. diff --git a/aiogram/dispatcher/event/handler.py b/aiogram/dispatcher/event/handler.py index ad454213..8c283dd2 100644 --- a/aiogram/dispatcher/event/handler.py +++ b/aiogram/dispatcher/event/handler.py @@ -4,7 +4,7 @@ import inspect import warnings from dataclasses import dataclass, field from functools import partial -from typing import Any, Callable, Dict, List, Optional, Tuple, Set +from typing import Any, Callable, Dict, List, Optional, Set, Tuple from magic_filter.magic import MagicFilter as OriginalMagicFilter diff --git a/tests/test_dispatcher/test_event/test_handler.py b/tests/test_dispatcher/test_event/test_handler.py index 1f49e717..1f8be4af 100644 --- a/tests/test_dispatcher/test_event/test_handler.py +++ b/tests/test_dispatcher/test_event/test_handler.py @@ -1,5 +1,5 @@ import functools -from typing import Any, Dict, Union, Callable, Set +from typing import Any, Callable, Dict, Set, Union import pytest from magic_filter import F as A