Skip to content
Myr

fix annotation for g object

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 89475e5 · Browse files · 1 file+5 added−3 removed
This commit

State

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

Diff stats

1 file+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:src/flask/globals.py+5 added-3 removed
4 unmodified lines
5from werkzeug.local import LocalStack67if t.TYPE_CHECKING:8 from .app import Flask9 from .ctx import AppContext9 from .ctx import _AppCtxGlobals10 from .sessions import SessionMixin11 from .wrappers import Request1213_request_ctx_err_msg = """\
38 unmodified lines
52_request_ctx_stack = LocalStack()53_app_ctx_stack = LocalStack()54current_app: "Flask" = LocalProxy(_find_app) # type: ignore55request: "Request" = LocalProxy(partial(_lookup_req_object, "request")) # type: ignore56session: "SessionMixin" = LocalProxy(partial(_lookup_req_object, "session")) # type: ignore # noqa: B95057g: "AppContext" = LocalProxy(partial(_lookup_app_object, "g")) # type: ignore56session: "SessionMixin" = LocalProxy( # type: ignore57 partial(_lookup_req_object, "session")58)59g: "_AppCtxGlobals" = LocalProxy(partial(_lookup_app_object, "g")) # type: ignore