mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 10:53:23 +00:00
Reformat code
This commit is contained in:
parent
ee8e457c5f
commit
2cf224da49
5 changed files with 14 additions and 6 deletions
|
|
@ -33,8 +33,8 @@ if TYPE_CHECKING:
|
||||||
UnbanChatMember,
|
UnbanChatMember,
|
||||||
UnbanChatSenderChat,
|
UnbanChatSenderChat,
|
||||||
UnpinAllChatMessages,
|
UnpinAllChatMessages,
|
||||||
UnpinChatMessage,
|
|
||||||
UnpinAllGeneralForumTopicMessages,
|
UnpinAllGeneralForumTopicMessages,
|
||||||
|
UnpinChatMessage,
|
||||||
)
|
)
|
||||||
from .chat_location import ChatLocation
|
from .chat_location import ChatLocation
|
||||||
from .chat_permissions import ChatPermissions
|
from .chat_permissions import ChatPermissions
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,12 @@ import html
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aiogram import Bot, Dispatcher, types
|
from aiogram import Bot, Dispatcher, types
|
||||||
from aiogram.filters import Command, CommandObject, ExceptionMessageFilter, ExceptionTypeFilter
|
from aiogram.filters import (
|
||||||
|
Command,
|
||||||
|
CommandObject,
|
||||||
|
ExceptionMessageFilter,
|
||||||
|
ExceptionTypeFilter,
|
||||||
|
)
|
||||||
from aiogram.types import ErrorEvent
|
from aiogram.types import ErrorEvent
|
||||||
|
|
||||||
TOKEN = "42:TOKEN"
|
TOKEN = "42:TOKEN"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
from aiogram.methods import Request, UnpinAllForumTopicMessages, UnpinAllGeneralForumTopicMessages
|
from aiogram.methods import (
|
||||||
|
Request,
|
||||||
|
UnpinAllForumTopicMessages,
|
||||||
|
UnpinAllGeneralForumTopicMessages,
|
||||||
|
)
|
||||||
from tests.mocked_bot import MockedBot
|
from tests.mocked_bot import MockedBot
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ from aiogram.types import (
|
||||||
PollOption,
|
PollOption,
|
||||||
ProximityAlertTriggered,
|
ProximityAlertTriggered,
|
||||||
Sticker,
|
Sticker,
|
||||||
|
Story,
|
||||||
SuccessfulPayment,
|
SuccessfulPayment,
|
||||||
User,
|
User,
|
||||||
UserShared,
|
UserShared,
|
||||||
|
|
@ -73,7 +74,6 @@ from aiogram.types import (
|
||||||
VideoNote,
|
VideoNote,
|
||||||
Voice,
|
Voice,
|
||||||
WebAppData,
|
WebAppData,
|
||||||
Story,
|
|
||||||
)
|
)
|
||||||
from aiogram.types.message import ContentType, Message
|
from aiogram.types.message import ContentType, Message
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ from typing import Any, Dict, NoReturn, Optional, Union
|
||||||
import pytest
|
import pytest
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from aiogram.dispatcher.event.bases import SkipHandler, UNHANDLED
|
from aiogram.dispatcher.event.bases import UNHANDLED, SkipHandler
|
||||||
from aiogram.dispatcher.event.handler import HandlerObject
|
from aiogram.dispatcher.event.handler import HandlerObject
|
||||||
from aiogram.dispatcher.event.telegram import TelegramEventObserver
|
from aiogram.dispatcher.event.telegram import TelegramEventObserver
|
||||||
from aiogram.dispatcher.router import Router
|
from aiogram.dispatcher.router import Router
|
||||||
|
|
@ -13,7 +13,6 @@ from aiogram.exceptions import UnsupportedKeywordArgument
|
||||||
from aiogram.filters import Filter
|
from aiogram.filters import Filter
|
||||||
from aiogram.types import Chat, Message, User
|
from aiogram.types import Chat, Message, User
|
||||||
|
|
||||||
|
|
||||||
# TODO: Test middlewares in routers tree
|
# TODO: Test middlewares in routers tree
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue