mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Remove unused imports
This commit is contained in:
parent
8204b6af52
commit
a1e840af89
2 changed files with 3 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, Union
|
from typing import TYPE_CHECKING, Any, Dict, Union
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
@ -14,9 +14,7 @@ class BaseFilter(ABC, BaseModel):
|
||||||
else: # pragma: no cover
|
else: # pragma: no cover
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def __call__(
|
async def __call__(self, *args: Any, **kwargs: Any) -> Union[bool, Dict[str, Any]]:
|
||||||
self, *args: Any, **kwargs: Any
|
|
||||||
) -> Union[bool, Dict[str, Any]]:
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __await__(self):
|
def __await__(self):
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import functools
|
||||||
from typing import Any, Awaitable, Callable, Dict, NoReturn, Union
|
from typing import Any, Awaitable, Callable, Dict, NoReturn, Union
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from aiogram.dispatcher.event.handler import HandlerObject
|
from aiogram.dispatcher.event.handler import HandlerObject
|
||||||
from aiogram.dispatcher.event.observer import EventObserver, SkipHandler, TelegramEventObserver
|
from aiogram.dispatcher.event.observer import EventObserver, SkipHandler, TelegramEventObserver
|
||||||
from aiogram.dispatcher.filters.base import BaseFilter
|
from aiogram.dispatcher.filters.base import BaseFilter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue