defaults.py
This file
Path
src/jinja2/defaults.py
48 lines · 1.2 KiB · Python
Last changed by
drop end of life python versions (#2096)David Lordbefore adoption49c48a0
History of this fileTake it
The walk stopped after 200 commits: lines older than c580dd0 point at it.
Merge pull request #1361 from pallets/consistencyDavid Lordbefore adoptionab9cd8c
lines 1–2why, one step back1import typing as t2update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0
lines 3–9why, one step back3from .filters import FILTERS as DEFAULT_FILTERS # noqa: F4014from .tests import TESTS as DEFAULT_TESTS # noqa: F4015from .utils import Cycler6from .utils import generate_lorem_ipsum7from .utils import Joiner8from .utils import Namespace9Merge pull request #1412 from pallets/typingDavid Lordbefore adoption1a3342b
lines 10–12why, one step back10if t.TYPE_CHECKING:11 import typing_extensions as te12update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0
lines 13–19why, one step back13# defaults for the parser / lexer14BLOCK_START_STRING = "{%"15BLOCK_END_STRING = "%}"16VARIABLE_START_STRING = "{{"17VARIABLE_END_STRING = "}}"18COMMENT_START_STRING = "{#"19COMMENT_END_STRING = "#}"drop end of life python versions (#2096)David Lordbefore adoption49c48a0
lines 20–21why, one step back20LINE_STATEMENT_PREFIX: str | None = None21LINE_COMMENT_PREFIX: str | None = Noneupdate building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0
lines 22–23why, one step back22TRIM_BLOCKS = False23LSTRIP_BLOCKS = FalseMerge pull request #1412 from pallets/typingDavid Lordbefore adoption1a3342b
line 24why, one step back24NEWLINE_SEQUENCE: "te.Literal['\\n', '\\r\\n', '\\r']" = "\n"update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0
lines 25–38why, one step back25KEEP_TRAILING_NEWLINE = False2627# default filters, tests and namespace2829DEFAULT_NAMESPACE = {30 "range": range,31 "dict": dict,32 "lipsum": generate_lorem_ipsum,33 "cycler": Cycler,34 "joiner": Joiner,35 "namespace": Namespace,36}3738# default policiesUpdated dependency management to uv (#2093)David Lordbefore adoption05f5d74
line 39why, one step back39DEFAULT_POLICIES: dict[str, t.Any] = {update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0
lines 40–48why, one step back40 "compiler.ascii_str": True,41 "urlize.rel": "noopener",42 "urlize.target": None,43 "urlize.extra_schemes": None,44 "truncate.leeway": 5,45 "json.dumps_function": None,46 "json.dumps_kwargs": {"sort_keys": True},47 "ext.i18n.trimmed": False,48}