MCPcopy Create free account
hub / github.com/nodejs/node / __call__

Method __call__

tools/inspector_protocol/jinja2/environment.py:1181–1187  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1179 self._undefined_to_none = undefined_to_none
1180
1181 def __call__(self, *args, **kwargs):
1182 context = self._template.new_context(dict(*args, **kwargs))
1183 consume(self._template.root_render_func(context))
1184 rv = context.vars['result']
1185 if self._undefined_to_none and isinstance(rv, Undefined):
1186 rv = None
1187 return rv
1188
1189
1190@implements_iterator

Callers

nothing calls this directly

Calls 2

consumeFunction · 0.90
new_contextMethod · 0.45

Tested by

no test coverage detected