skip coverage for TYPE_CHECKING

This commit is contained in:
Stanislav Bushuev 2022-05-02 14:42:23 +02:00 committed by David Lord
parent 127df57a06
commit a74e266474
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
13 changed files with 13 additions and 13 deletions

View file

@ -67,7 +67,7 @@ from .typing import TemplateTestCallable
from .wrappers import Request
from .wrappers import Response
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
import typing_extensions as te
from .blueprints import Blueprint
from .testing import FlaskClient

View file

@ -17,7 +17,7 @@ from .typing import TemplateTestCallable
from .typing import URLDefaultCallable
from .typing import URLValuePreprocessorCallable
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .app import Flask
from .typing import ErrorHandlerCallable

View file

@ -11,7 +11,7 @@ from .signals import appcontext_popped
from .signals import appcontext_pushed
from .typing import AfterRequestCallable
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .app import Flask
from .sessions import SessionMixin
from .wrappers import Request

View file

@ -4,7 +4,7 @@ from functools import partial
from werkzeug.local import LocalProxy
from werkzeug.local import LocalStack
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .app import Flask
from .ctx import _AppCtxGlobals
from .sessions import SessionMixin

View file

@ -20,7 +20,7 @@ from .globals import request
from .globals import session
from .signals import message_flashed
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .wrappers import Response

View file

@ -11,7 +11,7 @@ from werkzeug.http import http_date
from ..globals import current_app
from ..globals import request
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from ..app import Flask
from ..wrappers import Response

View file

@ -6,7 +6,7 @@ from werkzeug.local import LocalProxy
from .globals import request
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .app import Flask

View file

@ -26,7 +26,7 @@ from .typing import TemplateContextProcessorCallable
from .typing import URLDefaultCallable
from .typing import URLValuePreprocessorCallable
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .wrappers import Response
from .typing import ErrorHandlerCallable

View file

@ -11,7 +11,7 @@ from werkzeug.datastructures import CallbackDict
from .helpers import is_ip
from .json.tag import TaggedJSONSerializer
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
import typing_extensions as te
from .app import Flask
from .wrappers import Request, Response

View file

@ -10,7 +10,7 @@ from .globals import _request_ctx_stack
from .signals import before_render_template
from .signals import template_rendered
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .app import Flask
from .scaffold import Scaffold

View file

@ -14,7 +14,7 @@ from .globals import _request_ctx_stack
from .json import dumps as json_dumps
from .sessions import SessionMixin
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from werkzeug.test import TestResponse
from .app import Flask

View file

@ -1,7 +1,7 @@
import typing as t
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from _typeshed.wsgi import WSGIApplication # noqa: F401
from werkzeug.datastructures import Headers # noqa: F401
from werkzeug.wrappers.response import Response # noqa: F401

View file

@ -8,7 +8,7 @@ from . import json
from .globals import current_app
from .helpers import _split_blueprint_path
if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from werkzeug.routing import Rule