Merge pull request #4566 from citramon/improve_coverage
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by GitHub · parents 127df57, a74e266 · 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
Provenance
- Commit
bd56d19- Tree
fe7f67e- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
127df57- Parent 2
a74e266
13 files changed+13 added−13 removed
modified:src/flask/json/__init__.py+1 added-1 removed
9 unmodified lines10 11 from ..globals import current_app12 from ..globals import request13 14-if t.TYPE_CHECKING:14+if t.TYPE_CHECKING: # pragma: no cover15 from ..app import Flask16 from ..wrappers import Response17 18 285 unmodified linesmodified:src/flask/app.py+1 added-1 removed
65 unmodified lines66 from .typing import TemplateTestCallable67 from .wrappers import Request68 from .wrappers import Response69 70-if t.TYPE_CHECKING:70+if t.TYPE_CHECKING: # pragma: no cover71 import typing_extensions as te72 from .blueprints import Blueprint73 from .testing import FlaskClient74 from .testing import FlaskCliRunner2021 unmodified linesmodified:src/flask/blueprints.py+1 added-1 removed
15 unmodified lines16 from .typing import TemplateTestCallable17 from .typing import URLDefaultCallable18 from .typing import URLValuePreprocessorCallable19 20-if t.TYPE_CHECKING:20+if t.TYPE_CHECKING: # pragma: no cover21 from .app import Flask22 from .typing import ErrorHandlerCallable23 24 DeferredSetupFunction = t.Callable[["BlueprintSetupState"], t.Callable]573 unmodified linesmodified:src/flask/ctx.py+1 added-1 removed
9 unmodified lines10 from .signals import appcontext_popped11 from .signals import appcontext_pushed12 from .typing import AfterRequestCallable13 14-if t.TYPE_CHECKING:14+if t.TYPE_CHECKING: # pragma: no cover15 from .app import Flask16 from .sessions import SessionMixin17 from .wrappers import Request18 495 unmodified linesmodified:src/flask/globals.py+1 added-1 removed
2 unmodified lines3 4 from werkzeug.local import LocalProxy5 from werkzeug.local import LocalStack6 7-if t.TYPE_CHECKING:7+if t.TYPE_CHECKING: # pragma: no cover8 from .app import Flask9 from .ctx import _AppCtxGlobals10 from .sessions import SessionMixin11 from .wrappers import Request48 unmodified linesmodified:src/flask/helpers.py+1 added-1 removed
18 unmodified lines19 from .globals import request20 from .globals import session21 from .signals import message_flashed22 23-if t.TYPE_CHECKING:23+if t.TYPE_CHECKING: # pragma: no cover24 from .wrappers import Response25 26 27 def get_env() -> str:763 unmodified linesmodified:src/flask/logging.py+1 added-1 removed
4 unmodified lines5 from werkzeug.local import LocalProxy6 7 from .globals import request8 9-if t.TYPE_CHECKING:9+if t.TYPE_CHECKING: # pragma: no cover10 from .app import Flask11 12 13 @LocalProxy61 unmodified linesmodified:src/flask/scaffold.py+1 added-1 removed
24 unmodified lines25 from .typing import TemplateContextProcessorCallable26 from .typing import URLDefaultCallable27 from .typing import URLValuePreprocessorCallable28 29-if t.TYPE_CHECKING:29+if t.TYPE_CHECKING: # pragma: no cover30 from .wrappers import Response31 from .typing import ErrorHandlerCallable32 33 # a singleton sentinel value for parameter defaults839 unmodified linesmodified:src/flask/sessions.py+1 added-1 removed
9 unmodified lines10 11 from .helpers import is_ip12 from .json.tag import TaggedJSONSerializer13 14-if t.TYPE_CHECKING:14+if t.TYPE_CHECKING: # pragma: no cover15 import typing_extensions as te16 from .app import Flask17 from .wrappers import Request, Response18 403 unmodified linesmodified:src/flask/templating.py+1 added-1 removed
8 unmodified lines9 from .globals import _request_ctx_stack10 from .signals import before_render_template11 from .signals import template_rendered12 13-if t.TYPE_CHECKING:13+if t.TYPE_CHECKING: # pragma: no cover14 from .app import Flask15 from .scaffold import Scaffold16 17 149 unmodified linesmodified:src/flask/testing.py+1 added-1 removed
12 unmodified lines13 from .globals import _request_ctx_stack14 from .json import dumps as json_dumps15 from .sessions import SessionMixin16 17-if t.TYPE_CHECKING:17+if t.TYPE_CHECKING: # pragma: no cover18 from werkzeug.test import TestResponse19 20 from .app import Flask21 262 unmodified linesmodified:src/flask/typing.py+1 added-1 removed
1 import typing as t2 3 4-if t.TYPE_CHECKING:4+if 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 linesmodified:src/flask/wrappers.py+1 added-1 removed
6 unmodified lines7 from . import json8 from .globals import current_app9 from .helpers import _split_blueprint_path10 11-if t.TYPE_CHECKING:11+if t.TYPE_CHECKING: # pragma: no cover12 from werkzeug.routing import Rule13 14 15 class Request(RequestBase):156 unmodified lines