From a00f35ba29551ae103b3ad249c4d7426ec4e2450 Mon Sep 17 00:00:00 2001 From: latan Date: Fri, 6 Sep 2024 12:16:56 +0300 Subject: [PATCH] apply black isort --- aiogram/types/message.py | 4 ++-- tests/test_api/test_types/test_inaccessible_message.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/aiogram/types/message.py b/aiogram/types/message.py index ed6180f2..2c1fa627 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -1467,7 +1467,7 @@ class Message(MaybeInaccessibleMessage): :param title: Product name, 1-32 characters :param description: Product description, 1-255 characters - :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. + :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. :param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_. :param prices: Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in `Telegram Stars `_. :param provider_token: Payment provider token, obtained via `@BotFather `_. Pass an empty string for payments in `Telegram Stars `_. @@ -1582,7 +1582,7 @@ class Message(MaybeInaccessibleMessage): :param title: Product name, 1-32 characters :param description: Product description, 1-255 characters - :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. + :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. :param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_. :param prices: Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in `Telegram Stars `_. :param provider_token: Payment provider token, obtained via `@BotFather `_. Pass an empty string for payments in `Telegram Stars `_. diff --git a/tests/test_api/test_types/test_inaccessible_message.py b/tests/test_api/test_types/test_inaccessible_message.py index 2587de67..5a7ee111 100644 --- a/tests/test_api/test_types/test_inaccessible_message.py +++ b/tests/test_api/test_types/test_inaccessible_message.py @@ -35,6 +35,7 @@ MESSAGES_AND_CONTENT_TYPES = [ [TEST_MESSAGE_UNKNOWN, ContentType.UNKNOWN], ] + class TestMessage: @pytest.mark.parametrize( "message,content_type", @@ -120,7 +121,8 @@ class TestMessage: ], ): message = InaccessibleMessage( - message_id=42, chat=Chat(id=42, type="private"), + message_id=42, + chat=Chat(id=42, type="private"), ) alias_name = "_".join(item for item in [alias_type, alias_for_method] if item)