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

Method test_any

src/jinja2/lexer.py:292–294  ·  view source on GitHub ↗

Test against multiple token expressions.

(self, *iterable: str)

Source from the content-addressed store, hash-verified

290 return False
291
292 def test_any(self, *iterable: str) -> bool:
293 """Test against multiple token expressions."""
294 return any(self.test(expr) for expr in iterable)
295
296
297class TokenStreamIterator:

Callers 4

is_tuple_endMethod · 0.80
parse_import_contextMethod · 0.80
parse_testMethod · 0.80
subparseMethod · 0.80

Calls 1

testMethod · 0.95

Tested by

no test coverage detected