Rename handler -> handlers

This commit is contained in:
Alex Root Junior 2022-08-07 16:47:04 +03:00
parent 01e5b3e456
commit c923942c96
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
25 changed files with 23 additions and 24 deletions

View file

@ -1,6 +1,5 @@
from aiogram.dispatcher.flags import FlagGenerator
from . import filters, handler
from .client import session
from .client.bot import Bot
from .dispatcher.dispatcher import Dispatcher
@ -32,8 +31,6 @@ __all__ = (
"Dispatcher",
"Router",
"BaseMiddleware",
"filters",
"handler",
"F",
"html",
"md",

View file

@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, List, Optional, Tuple
from magic_filter import MagicFilter
from aiogram.dispatcher.flags import extract_flags_from_object
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
CallbackType = Callable[..., Any]

View file

@ -1,7 +1,7 @@
from abc import ABC
from typing import Optional
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import CallbackQuery, Message, User

View file

@ -1,6 +1,6 @@
from abc import ABC
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import ChatMemberUpdated, User

View file

@ -1,6 +1,6 @@
from abc import ABC
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import ChosenInlineResult, User

View file

@ -1,6 +1,6 @@
from abc import ABC
from aiogram.handler.base import BaseHandler
from aiogram.handlers.base import BaseHandler
class ErrorHandler(BaseHandler[Exception], ABC):

View file

@ -1,6 +1,6 @@
from abc import ABC
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import InlineQuery, User

View file

@ -2,7 +2,7 @@ from abc import ABC
from typing import Optional, cast
from aiogram.filters import CommandObject
from aiogram.handler.base import BaseHandler, BaseHandlerMixin
from aiogram.handlers.base import BaseHandler, BaseHandlerMixin
from aiogram.types import Chat, Message, User

View file

@ -1,7 +1,7 @@
from abc import ABC
from typing import List
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import Poll, PollOption

View file

@ -1,6 +1,6 @@
from abc import ABC
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import PreCheckoutQuery, User

View file

@ -1,6 +1,6 @@
from abc import ABC
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import ShippingQuery, User

View file

@ -14,6 +14,8 @@ __all__ = (
"TextDecoration",
"html_decoration",
"markdown_decoration",
"add_surrogates",
"remove_surrogates",
)

View file

@ -6,7 +6,7 @@ import pytest
from aiogram import F
from aiogram.dispatcher.event.handler import CallableMixin, FilterObject, HandlerObject
from aiogram.filters import BaseFilter
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import Update
pytestmark = pytest.mark.asyncio

View file

@ -7,7 +7,7 @@ import pytest
from aiogram import Bot
from aiogram.dispatcher.event.handler import HandlerObject
from aiogram.handler import BaseHandler
from aiogram.handlers import BaseHandler
from aiogram.types import Chat, Message, Update
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import CallbackQueryHandler
from aiogram.handlers import CallbackQueryHandler
from aiogram.types import CallbackQuery, User
pytestmark = pytest.mark.asyncio

View file

@ -3,7 +3,7 @@ from typing import Any
import pytest
from aiogram.handler import ChatMemberHandler
from aiogram.handlers import ChatMemberHandler
from aiogram.types import Chat, ChatMemberMember, ChatMemberUpdated, User
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import ChosenInlineResultHandler
from aiogram.handlers import ChosenInlineResultHandler
from aiogram.types import ChosenInlineResult, User
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import ErrorHandler
from aiogram.handlers import ErrorHandler
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import InlineQueryHandler
from aiogram.handlers import InlineQueryHandler
from aiogram.types import InlineQuery, User
pytestmark = pytest.mark.asyncio

View file

@ -4,7 +4,7 @@ from typing import Any
import pytest
from aiogram.filters import CommandObject
from aiogram.handler import MessageHandler, MessageHandlerCommandMixin
from aiogram.handlers import MessageHandler, MessageHandlerCommandMixin
from aiogram.types import Chat, Message, User
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import PollHandler
from aiogram.handlers import PollHandler
from aiogram.types import Poll, PollOption
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import PreCheckoutQueryHandler
from aiogram.handlers import PreCheckoutQueryHandler
from aiogram.types import PreCheckoutQuery, User
pytestmark = pytest.mark.asyncio

View file

@ -2,7 +2,7 @@ from typing import Any
import pytest
from aiogram.handler import ShippingQueryHandler
from aiogram.handlers import ShippingQueryHandler
from aiogram.types import ShippingAddress, ShippingQuery, User
pytestmark = pytest.mark.asyncio