MCPcopy
hub / github.com/pallets/jinja / as_const

Method as_const

src/jinja2/nodes.py:663–667  ·  view source on GitHub ↗
(
        self, eval_ctx: t.Optional[EvalContext] = None
    )

Source from the content-addressed store, hash-verified

661 items: t.List["Pair"]
662
663 def as_const(
664 self, eval_ctx: t.Optional[EvalContext] = None
665 ) -> t.Dict[t.Any, t.Any]:
666 eval_ctx = get_eval_context(self, eval_ctx)
667 return dict(x.as_const(eval_ctx) for x in self.items)
668
669
670class Pair(Helper):

Callers

nothing calls this directly

Calls 2

get_eval_contextFunction · 0.85
as_constMethod · 0.45

Tested by

no test coverage detected