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

Method as_const

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

Source from the content-addressed store, hash-verified

675 value: Expr
676
677 def as_const(
678 self, eval_ctx: t.Optional[EvalContext] = None
679 ) -> t.Tuple[t.Any, t.Any]:
680 eval_ctx = get_eval_context(self, eval_ctx)
681 return self.key.as_const(eval_ctx), self.value.as_const(eval_ctx)
682
683
684class Keyword(Helper):

Callers

nothing calls this directly

Calls 2

get_eval_contextFunction · 0.85
as_constMethod · 0.45

Tested by

no test coverage detected