From 63ecc1f948ae5e8f5d1bc63811cf4dfa9519ee1c Mon Sep 17 00:00:00 2001 From: Fenicu Date: Fri, 15 Oct 2021 07:48:42 +0300 Subject: [PATCH] black reformat --- examples/custom_filter_example.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/custom_filter_example.py b/examples/custom_filter_example.py index 10bd1323..beebbfcf 100644 --- a/examples/custom_filter_example.py +++ b/examples/custom_filter_example.py @@ -92,10 +92,7 @@ class LettersInMessageFilter(BoundFilter): # Binding filters dp.filters_factory.bind( GlobalAdminFilter, - exclude_event_handlers=[ - dp.channel_post_handlers, - dp.edited_channel_post_handlers - ] + exclude_event_handlers=[dp.channel_post_handlers, dp.edited_channel_post_handlers], ) dp.filters_factory.bind(MimeTypeFilter, event_handlers=[dp.message_handlers]) dp.filters_factory.bind(LettersInMessageFilter) @@ -111,7 +108,9 @@ async def handle_txt_documents(message: types.Message): await message.answer("This is a text file!") -@dp.message_handler(content_types=types.ContentTypes.DOCUMENT, mime_type=["image/jpeg", "image/png"]) +@dp.message_handler( + content_types=types.ContentTypes.DOCUMENT, mime_type=["image/jpeg", "image/png"] +) async def handle_photo_documents(message: types.Message): await message.answer("This is a photo file!")