No cover if TYPE_CHECKING

This commit is contained in:
Alex Root Junior 2019-11-23 17:03:14 +02:00
parent c9e490bcee
commit 0acdb24c3c
60 changed files with 60 additions and 100 deletions

View file

@ -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]: