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

Method mark_parameter_stored

src/jinja2/compiler.py:749–754  ·  view source on GitHub ↗

Marks a parameter in the current parameter definitions as stored. This will skip the enforced undefined checks.

(self, target: str)

Source from the content-addressed store, hash-verified

747 self._param_def_block.pop()
748
749 def mark_parameter_stored(self, target: str) -> None:
750 """Marks a parameter in the current parameter definitions as stored.
751 This will skip the enforced undefined checks.
752 """
753 if self._param_def_block:
754 self._param_def_block[-1].discard(target)
755
756 def push_context_reference(self, target: str) -> None:
757 self._context_reference_stack.append(target)

Callers 1

macro_bodyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected