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

Method func

src/jinja2/compiler.py:611–612  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

609 return async_value if self.environment.is_async else sync_value
610
611 def func(self, name: str) -> str:
612 return f"{self.choose_async()}def {name}"
613
614 def macro_body(
615 self, node: t.Union[nodes.Macro, nodes.CallBlock], frame: Frame

Callers 3

macro_bodyMethod · 0.95
visit_TemplateMethod · 0.95
visit_ForMethod · 0.95

Calls 1

choose_asyncMethod · 0.95

Tested by

no test coverage detected