Remove unused imports

This commit is contained in:
Alex Root Junior 2019-11-24 22:54:37 +02:00
parent 8204b6af52
commit a1e840af89
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,5 @@
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
@ -14,9 +14,7 @@ class BaseFilter(ABC, BaseModel):
else: # pragma: no cover
@abstractmethod
async def __call__(
self, *args: Any, **kwargs: Any
) -> Union[bool, Dict[str, Any]]:
async def __call__(self, *args: Any, **kwargs: Any) -> Union[bool, Dict[str, Any]]:
pass
def __await__(self):

View file

@ -2,6 +2,7 @@ import functools
from typing import Any, Awaitable, Callable, Dict, NoReturn, Union
import pytest
from aiogram.dispatcher.event.handler import HandlerObject
from aiogram.dispatcher.event.observer import EventObserver, SkipHandler, TelegramEventObserver
from aiogram.dispatcher.filters.base import BaseFilter