Home / Function/ __init__() — flask Function Reference

__init__() — flask Function Reference

Architecture documentation for the __init__() function in templating.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  653a67e8_6998_c15e_0a23_b04e7f6f9903["__init__()"]
  eae09cfb_3f27_c6a6_af5f_d584039b7dda["Environment"]
  653a67e8_6998_c15e_0a23_b04e7f6f9903 -->|defined in| eae09cfb_3f27_c6a6_af5f_d584039b7dda
  style 653a67e8_6998_c15e_0a23_b04e7f6f9903 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/flask/templating.py lines 41–45

    def __init__(self, app: App, **options: t.Any) -> None:
        if "loader" not in options:
            options["loader"] = app.create_global_jinja_loader()
        BaseEnvironment.__init__(self, **options)
        self.app = app

Subdomains

Frequently Asked Questions

What does __init__() do?
__init__() is a function in the flask codebase, defined in src/flask/templating.py.
Where is __init__() defined?
__init__() is defined in src/flask/templating.py at line 41.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free