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

Function getbool

src/jinja2/ext.py:824–825  ·  view source on GitHub ↗
(options: t.Mapping[str, str], key: str, default: bool = False)

Source from the content-addressed store, hash-verified

822 extensions[InternationalizationExtension] = None
823
824 def getbool(options: t.Mapping[str, str], key: str, default: bool = False) -> bool:
825 return options.get(key, str(default)).lower() in {"1", "on", "yes", "true"}
826
827 silent = getbool(options, "silent", True)
828 environment = Environment(

Callers 1

babel_extractFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected