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

Function consume

src/jinja2/utils.py:121–124  ·  view source on GitHub ↗

Consumes an iterable without doing anything with it.

(iterable: t.Iterable[t.Any])

Source from the content-addressed store, hash-verified

119
120
121def consume(iterable: t.Iterable[t.Any]) -> None:
122 """Consumes an iterable without doing anything with it."""
123 for _ in iterable:
124 pass
125
126
127def clear_caches() -> None:

Callers 2

test_consumeFunction · 0.90
__call__Method · 0.85

Calls

no outgoing calls

Tested by 1

test_consumeFunction · 0.72