Skip to content
Myr

skip coverage for TYPE_CHECKING

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Stanislav Bushuev · committed by David Lord · parent 127df57 · Browse files · 13 files+13 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

13 files+13 added−13 removed

  • other:+13 added−13 removed

13 files+13 added−13 removed

modified:src/flask/json/__init__.py+1 added-1 removed
9 unmodified lines
1011from ..globals import current_app12from ..globals import request1314if t.TYPE_CHECKING:14if t.TYPE_CHECKING: # pragma: no cover15 from ..app import Flask16 from ..wrappers import Response1718
285 unmodified lines
modified:src/flask/app.py+1 added-1 removed
65 unmodified lines
66from .typing import TemplateTestCallable67from .wrappers import Request68from .wrappers import Response6970if t.TYPE_CHECKING:70if t.TYPE_CHECKING: # pragma: no cover71 import typing_extensions as te72 from .blueprints import Blueprint73 from .testing import FlaskClient74 from .testing import FlaskCliRunner
2021 unmodified lines
modified:src/flask/blueprints.py+1 added-1 removed
15 unmodified lines
16from .typing import TemplateTestCallable17from .typing import URLDefaultCallable18from .typing import URLValuePreprocessorCallable1920if t.TYPE_CHECKING:20if t.TYPE_CHECKING: # pragma: no cover21 from .app import Flask22 from .typing import ErrorHandlerCallable2324DeferredSetupFunction = t.Callable[["BlueprintSetupState"], t.Callable]
573 unmodified lines
modified:src/flask/ctx.py+1 added-1 removed
9 unmodified lines
10from .signals import appcontext_popped11from .signals import appcontext_pushed12from .typing import AfterRequestCallable1314if t.TYPE_CHECKING:14if t.TYPE_CHECKING: # pragma: no cover15 from .app import Flask16 from .sessions import SessionMixin17 from .wrappers import Request18
495 unmodified lines
modified:src/flask/globals.py+1 added-1 removed
2 unmodified lines
34from werkzeug.local import LocalProxy5from werkzeug.local import LocalStack67if t.TYPE_CHECKING:7if t.TYPE_CHECKING: # pragma: no cover8 from .app import Flask9 from .ctx import _AppCtxGlobals10 from .sessions import SessionMixin11 from .wrappers import Request
48 unmodified lines
modified:src/flask/helpers.py+1 added-1 removed
18 unmodified lines
19from .globals import request20from .globals import session21from .signals import message_flashed2223if t.TYPE_CHECKING:23if t.TYPE_CHECKING: # pragma: no cover24 from .wrappers import Response252627def get_env() -> str:
763 unmodified lines
modified:src/flask/logging.py+1 added-1 removed
4 unmodified lines
5from werkzeug.local import LocalProxy67from .globals import request89if t.TYPE_CHECKING:9if t.TYPE_CHECKING: # pragma: no cover10 from .app import Flask111213@LocalProxy
61 unmodified lines
modified:src/flask/scaffold.py+1 added-1 removed
24 unmodified lines
25from .typing import TemplateContextProcessorCallable26from .typing import URLDefaultCallable27from .typing import URLValuePreprocessorCallable2829if t.TYPE_CHECKING:29if t.TYPE_CHECKING: # pragma: no cover30 from .wrappers import Response31 from .typing import ErrorHandlerCallable3233# a singleton sentinel value for parameter defaults
839 unmodified lines
modified:src/flask/sessions.py+1 added-1 removed
9 unmodified lines
1011from .helpers import is_ip12from .json.tag import TaggedJSONSerializer1314if t.TYPE_CHECKING:14if t.TYPE_CHECKING: # pragma: no cover15 import typing_extensions as te16 from .app import Flask17 from .wrappers import Request, Response18
403 unmodified lines
modified:src/flask/templating.py+1 added-1 removed
8 unmodified lines
9from .globals import _request_ctx_stack10from .signals import before_render_template11from .signals import template_rendered1213if t.TYPE_CHECKING:13if t.TYPE_CHECKING: # pragma: no cover14 from .app import Flask15 from .scaffold import Scaffold1617
149 unmodified lines
modified:src/flask/testing.py+1 added-1 removed
12 unmodified lines
13from .globals import _request_ctx_stack14from .json import dumps as json_dumps15from .sessions import SessionMixin1617if t.TYPE_CHECKING:17if t.TYPE_CHECKING: # pragma: no cover18 from werkzeug.test import TestResponse1920 from .app import Flask21
262 unmodified lines
modified:src/flask/typing.py+1 added-1 removed
1import typing as t234if t.TYPE_CHECKING:4if t.TYPE_CHECKING: # pragma: no cover5 from _typeshed.wsgi import WSGIApplication # noqa: F4016 from werkzeug.datastructures import Headers # noqa: F4017 from werkzeug.wrappers.response import Response # noqa: F4018
47 unmodified lines
modified:src/flask/wrappers.py+1 added-1 removed
6 unmodified lines
7from . import json8from .globals import current_app9from .helpers import _split_blueprint_path1011if t.TYPE_CHECKING:11if t.TYPE_CHECKING: # pragma: no cover12 from werkzeug.routing import Rule131415class Request(RequestBase):
156 unmodified lines