mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
No cover if TYPE_CHECKING
This commit is contained in:
parent
c9e490bcee
commit
0acdb24c3c
60 changed files with 60 additions and 100 deletions
|
|
@ -9,7 +9,7 @@ from pydantic.generics import GenericModel
|
|||
|
||||
from ..types import InputFile, ResponseParameters
|
||||
|
||||
if TYPE_CHECKING:
|
||||
if TYPE_CHECKING: # pragma: no cover
|
||||
from ..client.bot import Bot
|
||||
|
||||
T = TypeVar("T")
|
||||
|
|
@ -42,11 +42,11 @@ class TelegramMethod(abc.ABC, BaseModel, Generic[T]):
|
|||
|
||||
@property
|
||||
@abc.abstractmethod
|
||||
def __returning__(self) -> Type:
|
||||
def __returning__(self) -> Type: # pragma: no cover
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def build_request(self) -> Request:
|
||||
def build_request(self) -> Request: # pragma: no cover
|
||||
pass
|
||||
|
||||
def build_response(self, data: Dict[str, Any]) -> Response[T]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue