mark top-level names as exported
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent d906c71 · Browse files · 2 files·+43 added−41 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+43 added−41 removed
- other:+43 added−41 removed
Provenance
- Commit
89475e5- Tree
47d3b18- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
d906c71
2 files changed+43 added−41 removed
modified:src/flask/__init__.py+41 added-41 removed
1 from markupsafe import escape2 from markupsafe import Markup3-from werkzeug.exceptions import abort4-from werkzeug.utils import redirect3+from werkzeug.exceptions import abort as abort4+from werkzeug.utils import redirect as redirect5 6-from . import json7-from .app import Flask8-from .app import Request9-from .app import Response10-from .blueprints import Blueprint11-from .config import Config12-from .ctx import after_this_request13-from .ctx import copy_current_request_context14-from .ctx import has_app_context15-from .ctx import has_request_context16-from .globals import _app_ctx_stack17-from .globals import _request_ctx_stack18-from .globals import current_app19-from .globals import g20-from .globals import request21-from .globals import session22-from .helpers import flash23-from .helpers import get_flashed_messages24-from .helpers import get_template_attribute25-from .helpers import make_response26-from .helpers import safe_join27-from .helpers import send_file28-from .helpers import send_from_directory29-from .helpers import stream_with_context30-from .helpers import url_for31-from .json import jsonify32-from .signals import appcontext_popped33-from .signals import appcontext_pushed34-from .signals import appcontext_tearing_down35-from .signals import before_render_template36-from .signals import got_request_exception37-from .signals import message_flashed38-from .signals import request_finished39-from .signals import request_started40-from .signals import request_tearing_down41-from .signals import signals_available42-from .signals import template_rendered43-from .templating import render_template44-from .templating import render_template_string6+from . import json as json7+from .app import Flask as Flask8+from .app import Request as Request9+from .app import Response as Response10+from .blueprints import Blueprint as Blueprint11+from .config import Config as Config12+from .ctx import after_this_request as after_this_request13+from .ctx import copy_current_request_context as copy_current_request_context14+from .ctx import has_app_context as has_app_context15+from .ctx import has_request_context as has_request_context16+from .globals import _app_ctx_stack as _app_ctx_stack17+from .globals import _request_ctx_stack as _request_ctx_stack18+from .globals import current_app as current_app19+from .globals import g as g20+from .globals import request as request21+from .globals import session as session22+from .helpers import flash as flash23+from .helpers import get_flashed_messages as get_flashed_messages24+from .helpers import get_template_attribute as get_template_attribute25+from .helpers import make_response as make_response26+from .helpers import safe_join as safe_join27+from .helpers import send_file as send_file28+from .helpers import send_from_directory as send_from_directory29+from .helpers import stream_with_context as stream_with_context30+from .helpers import url_for as url_for31+from .json import jsonify as jsonify32+from .signals import appcontext_popped as appcontext_popped33+from .signals import appcontext_pushed as appcontext_pushed34+from .signals import appcontext_tearing_down as appcontext_tearing_down35+from .signals import before_render_template as before_render_template36+from .signals import got_request_exception as got_request_exception37+from .signals import message_flashed as message_flashed38+from .signals import request_finished as request_finished39+from .signals import request_started as request_started40+from .signals import request_tearing_down as request_tearing_down41+from .signals import signals_available as signals_available42+from .signals import template_rendered as template_rendered43+from .templating import render_template as render_template44+from .templating import render_template_string as render_template_string45 46 __version__ = "2.0.1.dev0"modified:CHANGES.rst+2 added
6 unmodified lines7 8 - Re-add the ``filename`` parameter in ``send_from_directory``. The9 ``filename`` parameter has been renamed to ``path``, the old name10 is deprecated. :pr:`4019`11+- Mark top-level names as exported so type checking understands12+ imports in user projects. :issue:`4024`13 14 15 Version 2.0.016 -------------1096 unmodified lines