Method: flask.cli.ScriptInfo.__init__
Calls: 37, Exceptions: 0, Paths: 1Back
Path 1: 37 calls (1.0)
None (34) 'cliapp.app:testapp' (1) '/Users/andrehora/Documents/git/projects-pathspotter/flask/tests/test_apps/cliapp/app.py' (1) '/Users/andrehora/Doc...
None (9) TestRoutes.invoke.
True (36) False (1)
1def __init__(
2 self,
3 app_import_path: str | None = None,
4 create_app: t.Callable[..., Flask] | None = None,
5 set_debug_flag: bool = True,
6 ) -> None:
7 #: Optionally the import path for the Flask application.
8 self.app_import_path = app_import_path
9 #: Optionally a function that is passed the script info to create
10 #: the instance of the application.
11 self.create_app = create_app
12 #: A dictionary with arbitrary data that can be associated with
13 #: this script info.
14 self.data: dict[t.Any, t.Any] = {}
15 self.set_debug_flag = set_debug_flag
16 self._loaded_app: Flask | None = None