Skip to content
Myr

drop end of life python versions (#2096)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 05f5d74, ece7c27 · Browse files · 26 files+412 added−627 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

26 files+412 added−627 removed

  • other:+412 added−627 removed

26 files+412 added−627 removed

modified:.github/workflows/tests.yaml-1 removed
modified:docs/intro.rst+1 added-1 removed
28 unmodified lines
29Installation30------------3132We recommend using the latest version of Python. Jinja supports Python333.8 and newer. We also recommend using a `virtual environment`_ in order333.10 and newer. We also recommend using a `virtual environment`_ in order34to isolate your project dependencies from other projects and the system.3536.. _virtual environment: https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments37
26 unmodified lines
modified:src/jinja2/async_utils.py+2 added-2 removed
83 unmodified lines
84 raise StopAsyncIteration(e.value) from e858687def auto_aiter(88 iterable: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",88 iterable: "t.AsyncIterable[V] | t.Iterable[V]",89) -> "t.AsyncIterator[V]":90 if hasattr(iterable, "__aiter__"):91 return iterable.__aiter__()92 else:93 return _IteratorToAsyncIterator(iter(iterable))949596async def auto_to_list(97 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",97 value: "t.AsyncIterable[V] | t.Iterable[V]",98) -> list["V"]:99 return [x async for x in auto_aiter(value)]
modified:src/jinja2/bccache.py+6 added-10 removed
25 unmodified lines
2627 class _MemcachedClient(te.Protocol):28 def get(self, key: str) -> bytes: ...2930 def set(31 self, key: str, value: bytes, timeout: t.Optional[int] = None32 ) -> None: ...30 def set(self, key: str, value: bytes, timeout: int | None = None) -> None: ...313233bc_version = 534# Magic bytes to identify Jinja bytecode cache files. Contains the
22 unmodified lines
57 self.reset()5859 def reset(self) -> None:60 """Resets the bucket (unloads the bytecode)."""63 self.code: t.Optional[CodeType] = None61 self.code: CodeType | None = None6263 def load_bytecode(self, f: t.BinaryIO) -> None:64 """Loads bytecode from a file or file like object."""65 # make sure the magic header is correct
80 unmodified lines
146 implemented to allow applications to clear the bytecode cache used147 by a particular environment.148 """149152 def get_cache_key(153 self, name: str, filename: t.Optional[t.Union[str]] = None154 ) -> str:150 def get_cache_key(self, name: str, filename: str | None = None) -> str:151 """Returns the unique hash key for this template name."""152 hash = sha1(name.encode("utf-8"))153154 if filename is not None:
8 unmodified lines
163 def get_bucket(164 self,165 environment: "Environment",166 name: str,171 filename: t.Optional[str],167 filename: str | None,168 source: str,169 ) -> Bucket:170 """Return a cache bucket for the given template. All arguments are171 mandatory but filename may be `None`.
27 unmodified lines
199 This bytecode cache supports clearing of the cache using the clear method.200 """201202 def __init__(207 self, directory: t.Optional[str] = None, pattern: str = "__jinja2_%s.cache"203 self, directory: str | None = None, pattern: str = "__jinja2_%s.cache"204 ) -> None:205 if directory is None:206 directory = self._get_default_cache_dir()207 self.directory = directory
164 unmodified lines
372 def __init__(373 self,374 client: "_MemcachedClient",375 prefix: str = "jinja2/bytecode/",380 timeout: t.Optional[int] = None,376 timeout: int | None = None,377 ignore_memcache_errors: bool = True,378 ):379 self.client = client380 self.prefix = prefix
24 unmodified lines
modified:src/jinja2/compiler.py+29 added-33 removed
99 unmodified lines
100101def generate(102 node: nodes.Template,103 environment: "Environment",104 name: t.Optional[str],105 filename: t.Optional[str],106 stream: t.Optional[t.TextIO] = None,104 name: str | None,105 filename: str | None,106 stream: t.TextIO | None = None,107 defer_init: bool = False,108 optimized: bool = True,109) -> t.Optional[str]:109) -> str | None:110 """Generate the python source for a node tree."""111 if not isinstance(node, nodes.Template):112 raise TypeError("Can't compile non template nodes")113
38 unmodified lines
152 return visitor.undeclared153154155class MacroRef:156 def __init__(self, node: t.Union[nodes.Macro, nodes.CallBlock]) -> None:156 def __init__(self, node: nodes.Macro | nodes.CallBlock) -> None:157 self.node = node158 self.accesses_caller = False159 self.accesses_kwargs = False160 self.accesses_varargs = False
5 unmodified lines
166 def __init__(167 self,168 eval_ctx: EvalContext,169 parent: t.Optional["Frame"] = None,170 level: t.Optional[int] = None,170 level: int | None = None,171 ) -> None:172 self.eval_ctx = eval_ctx173174 # the parent of this frame
9 unmodified lines
184 # inside some tags we are using a buffer rather than yield statements.185 # this for example affects {% filter %} or {% macro %}. If a frame186 # is buffered this variable points to the name of the list used as187 # buffer.188 self.buffer: t.Optional[str] = None188 self.buffer: str | None = None189190 # the name of the block we're in, otherwise None.191 self.block: t.Optional[str] = None191 self.block: str | None = None192193 else:194 self.symbols = Symbols(parent.symbols, level=level)195 self.require_output_check = parent.require_output_check
102 unmodified lines
298class CodeGenerator(NodeVisitor):299 def __init__(300 self,301 environment: "Environment",302 name: t.Optional[str],303 filename: t.Optional[str],304 stream: t.Optional[t.TextIO] = None,302 name: str | None,303 filename: str | None,304 stream: t.TextIO | None = None,305 defer_init: bool = False,306 optimized: bool = True,307 ) -> None:308 if stream is None:
3 unmodified lines
312 self.filename = filename313 self.stream = stream314 self.created_block_context = False315 self.defer_init = defer_init316 self.optimizer: t.Optional[Optimizer] = None316 self.optimizer: Optimizer | None = None317318 if optimized:319 self.optimizer = Optimizer(environment)320
20 unmodified lines
341 self.filters: dict[str, str] = {}342343 # the debug information344 self.debug_info: list[tuple[int, int]] = []345 self._write_debug_info: t.Optional[int] = None345 self._write_debug_info: int | None = None346347 # the number of new lines before the next write()348 self._new_lines = 0349
66 unmodified lines
416 def outdent(self, step: int = 1) -> None:417 """Outdent by step."""418 self._indentation -= step419420 def start_write(self, frame: Frame, node: t.Optional[nodes.Node] = None) -> None:420 def start_write(self, frame: Frame, node: nodes.Node | None = None) -> None:421 """Yield or write into the frame buffer."""422 if frame.buffer is None:423 self.writeline("yield ", node)424 else:
4 unmodified lines
429 if frame.buffer is not None:430 self.write(")")431432 def simple_write(433 self, s: str, frame: Frame, node: t.Optional[nodes.Node] = None433 self, s: str, frame: Frame, node: nodes.Node | None = None434 ) -> None:435 """Simple shortcut for start_write + write + end_write."""436 self.start_write(frame, node)437 self.write(s)
23 unmodified lines
461 self.stream.write(" " * self._indentation)462 self._new_lines = 0463 self.stream.write(x)464465 def writeline(466 self, x: str, node: t.Optional[nodes.Node] = None, extra: int = 0467 ) -> None:465 def writeline(self, x: str, node: nodes.Node | None = None, extra: int = 0) -> None:466 """Combination of newline and write."""467 self.newline(node, extra)468 self.write(x)469472 def newline(self, node: t.Optional[nodes.Node] = None, extra: int = 0) -> None:470 def newline(self, node: nodes.Node | None = None, extra: int = 0) -> None:471 """Add one or more newlines before the next write."""472 self._new_lines = max(self._new_lines, 1 + extra)473 if node is not None and node.lineno != self._last_line:474 self._write_debug_info = node.lineno475 self._last_line = node.lineno476477 def signature(478 self,481 node: t.Union[nodes.Call, nodes.Filter, nodes.Test],479 node: nodes.Call | nodes.Filter | nodes.Test,480 frame: Frame,483 extra_kwargs: t.Optional[t.Mapping[str, t.Any]] = None,481 extra_kwargs: t.Mapping[str, t.Any] | None = None,482 ) -> None:483 """Writes a function call to the stream for the current node.484 A leading comma is added automatically. The extra keyword485 arguments may not include python keywords otherwise a syntax
121 unmodified lines
607 def func(self, name: str) -> str:608 return f"{self.choose_async()}def {name}"609610 def macro_body(613 self, node: t.Union[nodes.Macro, nodes.CallBlock], frame: Frame611 self, node: nodes.Macro | nodes.CallBlock, frame: Frame612 ) -> tuple[Frame, MacroRef]:613 """Dump the function def of a macro or call block."""614 frame = frame.inner()615 frame.symbols.analyze_node(node)
205 unmodified lines
821 self.writeline(f"context.exported_vars.update(({names_str}))")822823 # -- Statement Visitors824827 def visit_Template(828 self, node: nodes.Template, frame: t.Optional[Frame] = None829 ) -> None:825 def visit_Template(self, node: nodes.Template, frame: Frame | None = None) -> None:826 assert frame is None, "no root frame allowed"827 eval_ctx = EvalContext(self.environment, self.name)828829 from .runtime import async_exported
261 unmodified lines
1091 if node.ignore_missing:1092 self.outdent()10931094 def _import_common(1099 self, node: t.Union[nodes.Import, nodes.FromImport], frame: Frame1095 self, node: nodes.Import | nodes.FromImport, frame: Frame1096 ) -> None:1097 self.write(f"{self.choose_async('await ')}environment.get_template(")1098 self.visit(node.template, frame)1099 self.write(f", {self.name!r}).")
264 unmodified lines
1364 def visit_With(self, node: nodes.With, frame: Frame) -> None:1365 with_frame = frame.inner()1366 with_frame.symbols.analyze_node(node)1367 self.enter_frame(with_frame)1372 for target, expr in zip(node.targets, node.values):1368 for target, expr in zip(node.targets, node.values, strict=False):1369 self.newline()1370 self.visit(target, with_frame)1371 self.write(" = ")1372 self.visit(expr, frame)
4 unmodified lines
1377 self.newline(node)1378 self.visit(node.node, frame)13791380 class _FinalizeInfo(t.NamedTuple):1385 const: t.Optional[t.Callable[..., str]]1386 src: t.Optional[str]1381 const: t.Callable[..., str] | None1382 src: str | None13831384 @staticmethod1385 def _default_finalize(value: t.Any) -> t.Any:1386 """The default finalize function if the environment isn't
1 unmodified line
1388 called on that function's output for constants.1389 """1390 return str(value)13911396 _finalize: t.Optional[_FinalizeInfo] = None1392 _finalize: _FinalizeInfo | None = None13931394 def _make_finalize(self) -> _FinalizeInfo:1395 """Build the finalize function to be used on constants and at1396 runtime. Cached so it's only created once for all output nodes.
9 unmodified lines
1406 """1407 if self._finalize is not None:1408 return self._finalize14091414 finalize: t.Optional[t.Callable[..., t.Any]]1410 finalize: t.Callable[..., t.Any] | None1411 finalize = default = self._default_finalize1412 src = None14131414 if self.environment.finalize:
89 unmodified lines
1504 self.writeline("if parent_template is None:")1505 self.indent()15061507 finalize = self._make_finalize()1512 body: list[t.Union[list[t.Any], nodes.Expr]] = []1508 body: list[list[t.Any] | nodes.Expr] = []15091510 # Evaluate constants at compile time if possible. Each item in1511 # body will be either a list of static data or a node to be1512 # evaluated at runtime.
273 unmodified lines
1786 self.visit(node.step, frame)17871788 @contextmanager1789 def _filter_test_common(1794 self, node: t.Union[nodes.Filter, nodes.Test], frame: Frame, is_filter: bool1790 self, node: nodes.Filter | nodes.Test, frame: Frame, is_filter: bool1791 ) -> t.Iterator[None]:1792 if self.environment.is_async:1793 self.write("(await auto_await(")1794
198 unmodified lines
modified:src/jinja2/debug.py+3 added-3 removed
9 unmodified lines
10if t.TYPE_CHECKING:11 from .runtime import Context121314def rewrite_traceback_stack(source: t.Optional[str] = None) -> BaseException:14def rewrite_traceback_stack(source: str | None = None) -> BaseException:15 """Rewrite the current exception to replace any tracebacks from16 within compiled template code with tracebacks that look like they17 came from the template source.18
54 unmodified lines
73 return exc_value.with_traceback(tb_next)747576def fake_traceback( # type: ignore77 exc_value: BaseException, tb: t.Optional[TracebackType], filename: str, lineno: int77 exc_value: BaseException, tb: TracebackType | None, filename: str, lineno: int78) -> TracebackType:79 """Produce a new traceback object that looks like it came from the80 template source instead of the compiled code. The filename, line81 number, and location name will point to the template, and the local
50 unmodified lines
132 """Based on the runtime locals, get the context that would be133 available at that point in the template.134 """135 # Start with the current template context.136 ctx: t.Optional[Context] = real_locals.get("context")136 ctx: Context | None = real_locals.get("context")137138 if ctx is not None:139 data: dict[str, t.Any] = ctx.get_all().copy()140 else:
32 unmodified lines
modified:src/jinja2/defaults.py+2 added-2 removed
15 unmodified lines
16VARIABLE_START_STRING = "{{"17VARIABLE_END_STRING = "}}"18COMMENT_START_STRING = "{#"19COMMENT_END_STRING = "#}"20LINE_STATEMENT_PREFIX: t.Optional[str] = None21LINE_COMMENT_PREFIX: t.Optional[str] = None20LINE_STATEMENT_PREFIX: str | None = None21LINE_COMMENT_PREFIX: str | None = None22TRIM_BLOCKS = False23LSTRIP_BLOCKS = False24NEWLINE_SEQUENCE: "te.Literal['\\n', '\\r\\n', '\\r']" = "\n"25KEEP_TRAILING_NEWLINE = False
23 unmodified lines
modified:src/jinja2/environment.py+97 added-103 removed
5 unmodified lines
6import typing7import typing as t8import weakref9from collections import ChainMap10from contextlib import aclosing11from functools import lru_cache12from functools import partial13from functools import reduce14from types import CodeType
66 unmodified lines
818283def create_cache(84 size: int,84) -> t.Optional[t.MutableMapping[tuple["weakref.ref[BaseLoader]", str], "Template"]]:85) -> t.MutableMapping[tuple["weakref.ref[BaseLoader]", str], "Template"] | None:86 """Return the cache class for the given size."""87 if size == 0:88 return None89
3 unmodified lines
93 return LRUCache(size) # type: ignore949596def copy_cache(96 cache: t.Optional[97 t.MutableMapping[tuple["weakref.ref[BaseLoader]", str], "Template"]98 ],99) -> t.Optional[t.MutableMapping[tuple["weakref.ref[BaseLoader]", str], "Template"]]:97 cache: t.MutableMapping[tuple["weakref.ref[BaseLoader]", str], "Template"] | None,98) -> t.MutableMapping[tuple["weakref.ref[BaseLoader]", str], "Template"] | None:99 """Create an empty copy of the given cache."""100 if cache is None:101 return None102
4 unmodified lines
107108109def load_extensions(110 environment: "Environment",112 extensions: t.Sequence[t.Union[str, type["Extension"]]],111 extensions: t.Sequence[str | type["Extension"]],112) -> dict[str, "Extension"]:113 """Load the extensions from the list and bind it to the environment.114 Returns a dict of instantiated extensions.115 """
183 unmodified lines
299 variable_start_string: str = VARIABLE_START_STRING,300 variable_end_string: str = VARIABLE_END_STRING,301 comment_start_string: str = COMMENT_START_STRING,302 comment_end_string: str = COMMENT_END_STRING,304 line_statement_prefix: t.Optional[str] = LINE_STATEMENT_PREFIX,305 line_comment_prefix: t.Optional[str] = LINE_COMMENT_PREFIX,303 line_statement_prefix: str | None = LINE_STATEMENT_PREFIX,304 line_comment_prefix: str | None = LINE_COMMENT_PREFIX,305 trim_blocks: bool = TRIM_BLOCKS,306 lstrip_blocks: bool = LSTRIP_BLOCKS,307 newline_sequence: "te.Literal['\\n', '\\r\\n', '\\r']" = NEWLINE_SEQUENCE,308 keep_trailing_newline: bool = KEEP_TRAILING_NEWLINE,310 extensions: t.Sequence[t.Union[str, type["Extension"]]] = (),309 extensions: t.Sequence[str | type["Extension"]] = (),310 optimized: bool = True,311 undefined: type[Undefined] = Undefined,313 finalize: t.Optional[t.Callable[..., t.Any]] = None,314 autoescape: t.Union[bool, t.Callable[[t.Optional[str]], bool]] = False,312 finalize: t.Callable[..., t.Any] | None = None,313 autoescape: bool | t.Callable[[str | None], bool] = False,314 loader: t.Optional["BaseLoader"] = None,315 cache_size: int = 400,316 auto_reload: bool = True,317 bytecode_cache: t.Optional["BytecodeCache"] = None,
49 unmodified lines
367368 self.is_async = enable_async369 _environment_config_check(self)370372 def add_extension(self, extension: t.Union[str, type["Extension"]]) -> None:371 def add_extension(self, extension: str | type["Extension"]) -> None:372 """Adds an extension after the environment was created.373374 .. versionadded:: 2.5375 """
15 unmodified lines
391 variable_start_string: str = missing,392 variable_end_string: str = missing,393 comment_start_string: str = missing,394 comment_end_string: str = missing,396 line_statement_prefix: t.Optional[str] = missing,397 line_comment_prefix: t.Optional[str] = missing,395 line_statement_prefix: str | None = missing,396 line_comment_prefix: str | None = missing,397 trim_blocks: bool = missing,398 lstrip_blocks: bool = missing,399 newline_sequence: "te.Literal['\\n', '\\r\\n', '\\r']" = missing,400 keep_trailing_newline: bool = missing,402 extensions: t.Sequence[t.Union[str, type["Extension"]]] = missing,401 extensions: t.Sequence[str | type["Extension"]] = missing,402 optimized: bool = missing,403 undefined: type[Undefined] = missing,405 finalize: t.Optional[t.Callable[..., t.Any]] = missing,406 autoescape: t.Union[bool, t.Callable[[t.Optional[str]], bool]] = missing,404 finalize: t.Callable[..., t.Any] | None = missing,405 autoescape: bool | t.Callable[[str | None], bool] = missing,406 loader: t.Optional["BaseLoader"] = missing,407 cache_size: int = missing,408 auto_reload: bool = missing,409 bytecode_cache: t.Optional["BytecodeCache"] = missing,
53 unmodified lines
463 def iter_extensions(self) -> t.Iterator["Extension"]:464 """Iterates over the extensions by priority."""465 return iter(sorted(self.extensions.values(), key=lambda x: x.priority))466468 def getitem(469 self, obj: t.Any, argument: t.Union[str, t.Any]470 ) -> t.Union[t.Any, Undefined]:467 def getitem(self, obj: t.Any, argument: str | t.Any) -> t.Any | Undefined:468 """Get an item or attribute of an object but prefer the item."""469 try:470 return obj[argument]471 except (AttributeError, TypeError, LookupError):
23 unmodified lines
495 return self.undefined(obj=obj, name=attribute)496497 def _filter_test_common(498 self,502 name: t.Union[str, Undefined],499 name: str | Undefined,500 value: t.Any,504 args: t.Optional[t.Sequence[t.Any]],505 kwargs: t.Optional[t.Mapping[str, t.Any]],506 context: t.Optional[Context],507 eval_ctx: t.Optional[EvalContext],501 args: t.Sequence[t.Any] | None,502 kwargs: t.Mapping[str, t.Any] | None,503 context: Context | None,504 eval_ctx: EvalContext | None,505 is_filter: bool,506 ) -> t.Any:507 if is_filter:508 env_map = self.filters
42 unmodified lines
551 def call_filter(552 self,553 name: str,554 value: t.Any,558 args: t.Optional[t.Sequence[t.Any]] = None,559 kwargs: t.Optional[t.Mapping[str, t.Any]] = None,560 context: t.Optional[Context] = None,561 eval_ctx: t.Optional[EvalContext] = None,555 args: t.Sequence[t.Any] | None = None,556 kwargs: t.Mapping[str, t.Any] | None = None,557 context: Context | None = None,558 eval_ctx: EvalContext | None = None,559 ) -> t.Any:560 """Invoke a filter on a value the same way the compiler does.561562 This might return a coroutine if the filter is running from an
9 unmodified lines
572 def call_test(573 self,574 name: str,575 value: t.Any,579 args: t.Optional[t.Sequence[t.Any]] = None,580 kwargs: t.Optional[t.Mapping[str, t.Any]] = None,581 context: t.Optional[Context] = None,582 eval_ctx: t.Optional[EvalContext] = None,576 args: t.Sequence[t.Any] | None = None,577 kwargs: t.Mapping[str, t.Any] | None = None,578 context: Context | None = None,579 eval_ctx: EvalContext | None = None,580 ) -> t.Any:581 """Invoke a test on a value the same way the compiler does.582583 This might return a coroutine if the test is running from an
13 unmodified lines
597 @internalcode598 def parse(599 self,600 source: str,604 name: t.Optional[str] = None,605 filename: t.Optional[str] = None,601 name: str | None = None,602 filename: str | None = None,603 ) -> nodes.Template:604 """Parse the sourcecode and return the abstract syntax tree. This605 tree of nodes is used by the compiler to convert the template into606 executable source- or bytecode. This is useful for debugging or to
7 unmodified lines
614 except TemplateSyntaxError:615 self.handle_exception(source=source)616617 def _parse(621 self, source: str, name: t.Optional[str], filename: t.Optional[str]618 self, source: str, name: str | None, filename: str | None619 ) -> nodes.Template:620 """Internal parsing function used by `parse` and `compile`."""621 return Parser(self, source, name, filename).parse()622623 def lex(624 self,625 source: str,629 name: t.Optional[str] = None,630 filename: t.Optional[str] = None,626 name: str | None = None,627 filename: str | None = None,628 ) -> t.Iterator[tuple[int, str, str]]:629 """Lex the given sourcecode and return a generator that yields630 tokens as tuples in the form ``(lineno, token_type, value)``.631 This can be useful for :ref:`extension development <writing-extensions>`
11 unmodified lines
643644 def preprocess(645 self,646 source: str,650 name: t.Optional[str] = None,651 filename: t.Optional[str] = None,647 name: str | None = None,648 filename: str | None = None,649 ) -> str:650 """Preprocesses the source with all extensions. This is automatically651 called for all parsing and compiling methods but *not* for :meth:`lex`652 because there you usually only want the actual source tokenized.
6 unmodified lines
659660 def _tokenize(661 self,662 source: str,666 name: t.Optional[str],667 filename: t.Optional[str] = None,668 state: t.Optional[str] = None,663 name: str | None,664 filename: str | None = None,665 state: str | None = None,666 ) -> TokenStream:667 """Called by the parser to do the preprocessing and filtering668 for all the extensions. Returns a :class:`~jinja2.lexer.TokenStream`.669 """
10 unmodified lines
680681 def _generate(682 self,683 source: nodes.Template,687 name: t.Optional[str],688 filename: t.Optional[str],684 name: str | None,685 filename: str | None,686 defer_init: bool = False,687 ) -> str:688 """Internal hook that can be overridden to hook a different generate689 method in.
19 unmodified lines
709710 @typing.overload711 def compile(712 self,716 source: t.Union[str, nodes.Template],717 name: t.Optional[str] = None,718 filename: t.Optional[str] = None,713 source: str | nodes.Template,714 name: str | None = None,715 filename: str | None = None,716 raw: "te.Literal[False]" = False,717 defer_init: bool = False,718 ) -> CodeType: ...719720 @typing.overload721 def compile(722 self,726 source: t.Union[str, nodes.Template],727 name: t.Optional[str] = None,728 filename: t.Optional[str] = None,723 source: str | nodes.Template,724 name: str | None = None,725 filename: str | None = None,726 raw: "te.Literal[True]" = ...,727 defer_init: bool = False,728 ) -> str: ...729730 @internalcode731 def compile(732 self,736 source: t.Union[str, nodes.Template],737 name: t.Optional[str] = None,738 filename: t.Optional[str] = None,733 source: str | nodes.Template,734 name: str | None = None,735 filename: str | None = None,736 raw: bool = False,737 defer_init: bool = False,741 ) -> t.Union[str, CodeType]:738 ) -> str | CodeType:739 """Compile a node or template source code. The `name` parameter is740 the load name of the template after it was joined using741 :meth:`join_path` if necessary, not the filename on the file system.742 the `filename` parameter is the estimated filename of the template on
73 unmodified lines
816817 def compile_templates(818 self,819 target: t.Union[str, "os.PathLike[str]"],823 extensions: t.Optional[t.Collection[str]] = None,824 filter_func: t.Optional[t.Callable[[str], bool]] = None,825 zip: t.Optional[str] = "deflated",826 log_function: t.Optional[t.Callable[[str], None]] = None,820 extensions: t.Collection[str] | None = None,821 filter_func: t.Callable[[str], bool] | None = None,822 zip: str | None = "deflated",823 log_function: t.Callable[[str], None] | None = None,824 ignore_errors: bool = True,825 ) -> None:826 """Finds all the templates the loader can find, compiles them827 and stores them in `target`. If `zip` is `None`, instead of in a
68 unmodified lines
896 log_function("Finished compiling templates")897898 def list_templates(899 self,903 extensions: t.Optional[t.Collection[str]] = None,904 filter_func: t.Optional[t.Callable[[str], bool]] = None,900 extensions: t.Collection[str] | None = None,901 filter_func: t.Callable[[str], bool] | None = None,902 ) -> list[str]:903 """Returns a list of templates for this environment. This requires904 that the loader supports the loader's905 :meth:`~BaseLoader.list_templates` method.
25 unmodified lines
931 names = [name for name in names if filter_func(name)]932933 return names934938 def handle_exception(self, source: t.Optional[str] = None) -> "te.NoReturn":935 def handle_exception(self, source: str | None = None) -> "te.NoReturn":936 """Exception handling helper. This is used internally to either raise937 rewritten exceptions or return a rendered traceback for the template.938 """939 from .debug import rewrite_traceback_stack
13 unmodified lines
953 return template954955 @internalcode956 def _load_template(960 self, name: str, globals: t.Optional[t.MutableMapping[str, t.Any]]957 self, name: str, globals: t.MutableMapping[str, t.Any] | None958 ) -> "Template":959 if self.loader is None:960 raise TypeError("no loader for this environment specified")961 cache_key = (weakref.ref(self.loader), name)
18 unmodified lines
980 @internalcode981 def get_template(982 self,983 name: t.Union[str, "Template"],987 parent: t.Optional[str] = None,988 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,984 parent: str | None = None,985 globals: t.MutableMapping[str, t.Any] | None = None,986 ) -> "Template":987 """Load a template by name with :attr:`loader` and return a988 :class:`Template`. If the template does not exist a989 :exc:`TemplateNotFound` exception is raised.
27 unmodified lines
1017 @internalcode1018 def select_template(1019 self,1020 names: t.Iterable[t.Union[str, "Template"]],1024 parent: t.Optional[str] = None,1025 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,1021 parent: str | None = None,1022 globals: t.MutableMapping[str, t.Any] | None = None,1023 ) -> "Template":1024 """Like :meth:`get_template`, but tries loading multiple names.1025 If none of the names can be loaded a :exc:`TemplatesNotFound`1026 exception is raised.
44 unmodified lines
1071 @internalcode1072 def get_or_select_template(1073 self,1074 template_name_or_list: t.Union[str, "Template", list[t.Union[str, "Template"]]],1078 parent: t.Optional[str] = None,1079 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,1075 parent: str | None = None,1076 globals: t.MutableMapping[str, t.Any] | None = None,1077 ) -> "Template":1078 """Use :meth:`select_template` if an iterable of template names1079 is given, or :meth:`get_template` if one name is given.1080
6 unmodified lines
1087 return self.select_template(template_name_or_list, parent, globals)10881089 def from_string(1090 self,1094 source: t.Union[str, nodes.Template],1095 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,1096 template_class: t.Optional[type["Template"]] = None,1091 source: str | nodes.Template,1092 globals: t.MutableMapping[str, t.Any] | None = None,1093 template_class: type["Template"] | None = None,1094 ) -> "Template":1095 """Load a template from a source string without using1096 :attr:`loader`.1097
9 unmodified lines
1107 cls = template_class or self.template_class1108 return cls.from_code(self, self.compile(source), gs, None)11091110 def make_globals(1114 self, d: t.Optional[t.MutableMapping[str, t.Any]]1111 self, d: t.MutableMapping[str, t.Any] | None1112 ) -> t.MutableMapping[str, t.Any]:1113 """Make the globals map for a template. Any given template1114 globals overlay the environment :attr:`globals`.1115
36 unmodified lines
1152 environment_class: type[Environment] = Environment11531154 environment: Environment1155 globals: t.MutableMapping[str, t.Any]1159 name: t.Optional[str]1160 filename: t.Optional[str]1156 name: str | None1157 filename: str | None1158 blocks: dict[str, t.Callable[[Context], t.Iterator[str]]]1159 root_render_func: t.Callable[[Context], t.Iterator[str]]1160 _module: t.Optional["TemplateModule"]1161 _debug_info: str1165 _uptodate: t.Optional[t.Callable[[], bool]]1162 _uptodate: t.Callable[[], bool] | None11631164 def __new__(1165 cls,1169 source: t.Union[str, nodes.Template],1166 source: str | nodes.Template,1167 block_start_string: str = BLOCK_START_STRING,1168 block_end_string: str = BLOCK_END_STRING,1169 variable_start_string: str = VARIABLE_START_STRING,1170 variable_end_string: str = VARIABLE_END_STRING,1171 comment_start_string: str = COMMENT_START_STRING,1172 comment_end_string: str = COMMENT_END_STRING,1176 line_statement_prefix: t.Optional[str] = LINE_STATEMENT_PREFIX,1177 line_comment_prefix: t.Optional[str] = LINE_COMMENT_PREFIX,1173 line_statement_prefix: str | None = LINE_STATEMENT_PREFIX,1174 line_comment_prefix: str | None = LINE_COMMENT_PREFIX,1175 trim_blocks: bool = TRIM_BLOCKS,1176 lstrip_blocks: bool = LSTRIP_BLOCKS,1177 newline_sequence: "te.Literal['\\n', '\\r\\n', '\\r']" = NEWLINE_SEQUENCE,1178 keep_trailing_newline: bool = KEEP_TRAILING_NEWLINE,1182 extensions: t.Sequence[t.Union[str, type["Extension"]]] = (),1179 extensions: t.Sequence[str | type["Extension"]] = (),1180 optimized: bool = True,1181 undefined: type[Undefined] = Undefined,1185 finalize: t.Optional[t.Callable[..., t.Any]] = None,1186 autoescape: t.Union[bool, t.Callable[[t.Optional[str]], bool]] = False,1182 finalize: t.Callable[..., t.Any] | None = None,1183 autoescape: bool | t.Callable[[str | None], bool] = False,1184 enable_async: bool = False,1185 ) -> t.Any: # it returns a `Template`, but this breaks the sphinx build...1186 env = get_spontaneous_environment(1187 cls.environment_class, # type: ignore
27 unmodified lines
1215 cls,1216 environment: Environment,1217 code: CodeType,1218 globals: t.MutableMapping[str, t.Any],1222 uptodate: t.Optional[t.Callable[[], bool]] = None,1219 uptodate: t.Callable[[], bool] | None = None,1220 ) -> "Template":1221 """Creates a template object from compiled code and the globals. This1222 is used by the loaders and environment to create a template object.1223 """
133 unmodified lines
13571358 ctx = self.new_context(dict(*args, **kwargs))13591360 try:1364 agen = self.root_render_func(ctx)1365 try:1366 async for event in agen: # type: ignore1361 agen: t.AsyncGenerator[str, None] = self.root_render_func(ctx) # type: ignore[assignment]13621363 async with aclosing(agen):1364 async for event in agen:1365 yield event1368 finally:1369 # we can't use async with aclosing(...) because that's only1370 # in 3.10+1371 await agen.aclose() # type: ignore1366 except Exception:1367 yield self.environment.handle_exception()13681369 def new_context(1370 self,1377 vars: t.Optional[dict[str, t.Any]] = None,1371 vars: dict[str, t.Any] | None = None,1372 shared: bool = False,1379 locals: t.Optional[t.Mapping[str, t.Any]] = None,1373 locals: t.Mapping[str, t.Any] | None = None,1374 ) -> Context:1375 """Create a new :class:`Context` for this template. The vars1376 provided will be passed to the template. Per default the globals1377 are added to the context. If shared is set to `True` the data
6 unmodified lines
1384 )13851386 def make_module(1387 self,1394 vars: t.Optional[dict[str, t.Any]] = None,1388 vars: dict[str, t.Any] | None = None,1389 shared: bool = False,1396 locals: t.Optional[t.Mapping[str, t.Any]] = None,1390 locals: t.Mapping[str, t.Any] | None = None,1391 ) -> "TemplateModule":1392 """This method works like the :attr:`module` attribute when called1393 without arguments but it will evaluate the template on every call1394 rather than caching it. It's also possible to provide
4 unmodified lines
1399 return TemplateModule(self, ctx)14001401 async def make_module_async(1402 self,1409 vars: t.Optional[dict[str, t.Any]] = None,1403 vars: dict[str, t.Any] | None = None,1404 shared: bool = False,1411 locals: t.Optional[t.Mapping[str, t.Any]] = None,1405 locals: t.Mapping[str, t.Any] | None = None,1406 ) -> "TemplateModule":1407 """As template module creation can invoke template code for1408 asynchronous executions this method must be used instead of the1409 normal :meth:`make_module` one. Likewise the module attribute
6 unmodified lines
1416 [x async for x in self.root_render_func(ctx)], # type: ignore1417 )14181419 @internalcode1426 def _get_default_module(self, ctx: t.Optional[Context] = None) -> "TemplateModule":1420 def _get_default_module(self, ctx: Context | None = None) -> "TemplateModule":1421 """If a context is passed in, this means that the template was1422 imported. Imported templates have access to the current1423 template's globals by default, but they can only be accessed via1424 the context during runtime.
18 unmodified lines
14431444 return self._module14451446 async def _get_default_module_async(1453 self, ctx: t.Optional[Context] = None1447 self, ctx: Context | None = None1448 ) -> "TemplateModule":1449 if ctx is not None:1450 keys = ctx.globals_keys - self.globals.keys()1451
65 unmodified lines
1517 def __init__(1518 self,1519 template: Template,1520 context: Context,1527 body_stream: t.Optional[t.Iterable[str]] = None,1521 body_stream: t.Iterable[str] | None = None,1522 ) -> None:1523 if body_stream is None:1524 if context.environment.is_async:1525 raise RuntimeError(
31 unmodified lines
1557 def __init__(self, template: Template, undefined_to_none: bool) -> None:1558 self._template = template1559 self._undefined_to_none = undefined_to_none15601567 def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Optional[t.Any]:1561 def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any | None:1562 context = self._template.new_context(dict(*args, **kwargs))1563 consume(self._template.root_render_func(context))1564 rv = context.vars["result"]1565 if self._undefined_to_none and isinstance(rv, Undefined):
17 unmodified lines
1583 self.disable_buffering()15841585 def dump(1586 self,1593 fp: t.Union[str, t.IO[bytes]],1594 encoding: t.Optional[str] = None,1595 errors: t.Optional[str] = "strict",1587 fp: str | t.IO[bytes],1588 encoding: str | None = None,1589 errors: str | None = "strict",1590 ) -> None:1591 """Dump the complete stream into a file or file-like object.1592 Per default strings are written, if you want to encode1593 before writing specify an `encoding`.
73 unmodified lines
modified:src/jinja2/exceptions.py+9 added-9 removed
5 unmodified lines
67class TemplateError(Exception):8 """Baseclass for all template errors."""910 def __init__(self, message: t.Optional[str] = None) -> None:10 def __init__(self, message: str | None = None) -> None:11 super().__init__(message)1213 @property14 def message(self) -> t.Optional[str]:14 def message(self) -> str | None:15 return self.args[0] if self.args else None161718class TemplateNotFound(IOError, LookupError, TemplateError):
5 unmodified lines
24 """2526 # Silence the Python warning about message being deprecated since27 # it's not valid here.28 message: t.Optional[str] = None28 message: str | None = None2930 def __init__(31 self,32 name: t.Optional[t.Union[str, "Undefined"]],33 message: t.Optional[str] = None,32 name: t.Union[str, "Undefined"] | None,33 message: str | None = None,34 ) -> None:35 IOError.__init__(self, name)3637 if message is None:
26 unmodified lines
6465 def __init__(66 self,67 names: t.Sequence[t.Union[str, "Undefined"]] = (),68 message: t.Optional[str] = None,68 message: str | None = None,69 ) -> None:70 if message is None:71 from .runtime import Undefined72
18 unmodified lines
91 def __init__(92 self,93 message: str,94 lineno: int,95 name: t.Optional[str] = None,96 filename: t.Optional[str] = None,95 name: str | None = None,96 filename: str | None = None,97 ) -> None:98 super().__init__(message)99 self.lineno = lineno100 self.name = name101 self.filename = filename102 self.source: t.Optional[str] = None102 self.source: str | None = None103104 # this is set to True if the debug.translate_syntax_error105 # function translated the syntax error into a new traceback106 self.translated = False
60 unmodified lines
modified:src/jinja2/ext.py+28 added-34 removed
35 unmodified lines
36 def npgettext(37 self, context: str, singular: str, plural: str, n: int38 ) -> str: ...3940 _SupportedTranslations = t.Union[_TranslationsBasic, _TranslationsContext]40 _SupportedTranslations = _TranslationsBasic | _TranslationsContext414243# I18N functions available in Jinja templates. If the I18N library44# provides ugettext, it will be assigned to gettext.
51 unmodified lines
96 rv.environment = environment97 return rv9899 def preprocess(100 self, source: str, name: t.Optional[str], filename: t.Optional[str] = None100 self, source: str, name: str | None, filename: str | None = None101 ) -> str:102 """This method is called before the actual lexing and can be used to103 preprocess the source. The `filename` is optional. The return value104 must be the preprocessed source.
9 unmodified lines
114 :class:`~jinja2.lexer.TokenStream`.115 """116 return stream117118 def parse(self, parser: "Parser") -> t.Union[nodes.Node, list[nodes.Node]]:118 def parse(self, parser: "Parser") -> nodes.Node | list[nodes.Node]:119 """If any of the :attr:`tags` matched this method is called with the120 parser as first argument. The token the parser stream is pointing at121 is the name token that matched. This method has to return one or a122 list of multiple nodes.123 """124 raise NotImplementedError()125126 def attr(127 self, name: str, lineno: t.Optional[int] = None128 ) -> nodes.ExtensionAttribute:126 def attr(self, name: str, lineno: int | None = None) -> nodes.ExtensionAttribute:127 """Return an attribute node for the current extension. This is useful128 to pass constants on extensions to generated template code.129130 ::
4 unmodified lines
135136 def call_method(137 self,138 name: str,141 args: t.Optional[list[nodes.Expr]] = None,142 kwargs: t.Optional[list[nodes.Keyword]] = None,143 dyn_args: t.Optional[nodes.Expr] = None,144 dyn_kwargs: t.Optional[nodes.Expr] = None,145 lineno: t.Optional[int] = None,139 args: list[nodes.Expr] | None = None,140 kwargs: list[nodes.Keyword] | None = None,141 dyn_args: nodes.Expr | None = None,142 dyn_kwargs: nodes.Expr | None = None,143 lineno: int | None = None,144 ) -> nodes.Call:145 """Call a method of the extension. This is a shortcut for146 :meth:`attr` + :class:`jinja2.nodes.Call`.147 """
13 unmodified lines
161162@pass_context163def _gettext_alias(164 __context: Context, *args: t.Any, **kwargs: t.Any167) -> t.Union[t.Any, Undefined]:165) -> t.Any | Undefined:166 return __context.call(__context.resolve("gettext"), *args, **kwargs)167168169def _make_new_gettext(func: t.Callable[[str], str]) -> t.Callable[..., str]:
95 unmodified lines
265 newstyle_gettext=False,266 )267268 def _install(271 self, translations: "_SupportedTranslations", newstyle: t.Optional[bool] = None269 self, translations: "_SupportedTranslations", newstyle: bool | None = None270 ) -> None:271 # ugettext and ungettext are preferred in case the I18N library272 # is providing compatibility with older Python versions.273 gettext = getattr(translations, "ugettext", None)
8 unmodified lines
282 self._install_callables(283 gettext, ngettext, newstyle=newstyle, pgettext=pgettext, npgettext=npgettext284 )285288 def _install_null(self, newstyle: t.Optional[bool] = None) -> None:286 def _install_null(self, newstyle: bool | None = None) -> None:287 import gettext288289 translations = gettext.NullTranslations()290 self._install_callables(
7 unmodified lines
298 def _install_callables(299 self,300 gettext: t.Callable[[str], str],301 ngettext: t.Callable[[str, str, int], str],304 newstyle: t.Optional[bool] = None,305 pgettext: t.Optional[t.Callable[[str, str], str]] = None,306 npgettext: t.Optional[t.Callable[[str, str, str, int], str]] = None,302 newstyle: bool | None = None,303 pgettext: t.Callable[[str, str], str] | None = None,304 npgettext: t.Callable[[str, str, str, int], str] | None = None,305 ) -> None:306 if newstyle is not None:307 self.environment.newstyle_gettext = newstyle # type: ignore308 if self.environment.newstyle_gettext: # type: ignore
15 unmodified lines
324 self.environment.globals.pop(key, None)325326 def _extract(327 self,330 source: t.Union[str, nodes.Template],328 source: str | nodes.Template,329 gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,332 ) -> t.Iterator[333 tuple[int, str, t.Union[t.Optional[str], tuple[t.Optional[str], ...]]]334 ]:330 ) -> t.Iterator[tuple[int, str, str | None | tuple[str | None, ...]]]:331 if isinstance(source, str):332 source = self.environment.parse(source)333 return extract_from_ast(source, gettext_functions)334339 def parse(self, parser: "Parser") -> t.Union[nodes.Node, list[nodes.Node]]:335 def parse(self, parser: "Parser") -> nodes.Node | list[nodes.Node]:336 """Parse a translatable tag."""337 lineno = next(parser.stream).lineno338339 context = None
4 unmodified lines
344345 # find all the variables referenced. Additionally a variable can be346 # defined in the body of the trans block too, but this is checked at347 # a later state.352 plural_expr: t.Optional[nodes.Expr] = None353 plural_expr_assignment: t.Optional[nodes.Assign] = None348 plural_expr: nodes.Expr | None = None349 plural_expr_assignment: nodes.Assign | None = None350 num_called_num = False351 variables: dict[str, nodes.Expr] = {}352 trimmed = None353 while parser.stream.current.type != "block_end":
152 unmodified lines
506507 def _make_node(508 self,509 singular: str,514 plural: t.Optional[str],515 context: t.Optional[str],510 plural: str | None,511 context: str | None,512 variables: dict[str, nodes.Expr],517 plural_expr: t.Optional[nodes.Expr],513 plural_expr: nodes.Expr | None,514 vars_referenced: bool,515 num_called_num: bool,516 ) -> nodes.Output:517 """Generates a useful node from the data provided."""
66 unmodified lines
584 """Adds break and continue to the template engine."""585586 tags = {"break", "continue"}587592 def parse(self, parser: "Parser") -> t.Union[nodes.Break, nodes.Continue]:588 def parse(self, parser: "Parser") -> nodes.Break | nodes.Continue:589 token = next(parser.stream)590 if token.value == "break":591 return nodes.Break(lineno=token.lineno)592 return nodes.Continue(lineno=token.lineno)
42 unmodified lines
635def extract_from_ast(636 ast: nodes.Template,637 gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,638 babel_style: bool = True,643) -> t.Iterator[tuple[int, str, t.Union[t.Optional[str], tuple[t.Optional[str], ...]]]]:639) -> t.Iterator[tuple[int, str, str | None | tuple[str | None, ...]]]:640 """Extract localizable strings from the given template node. Per641 default this function returns matches in babel style that means non string642 parameters as well as keyword arguments are returned as `None`. This643 allows Babel to figure out what you really meant if you are using
26 unmodified lines
670 This extraction function operates on the AST and is because of that unable671 to extract any comments. For comment support you have to use the babel672 extraction interface or extract comments yourself.673 """678 out: t.Union[t.Optional[str], tuple[t.Optional[str], ...]]674 out: str | None | tuple[str | None, ...]675676 for node in ast.find_all(nodes.Call):677 if (678 not isinstance(node.node, nodes.Name)679 or node.node.name not in gettext_functions680 ):681 continue682687 strings: list[t.Optional[str]] = []683 strings: list[str | None] = []684685 for arg in node.args:686 if isinstance(arg, nodes.Const) and isinstance(arg.value, str):687 strings.append(arg.value)
65 unmodified lines
753 fileobj: t.BinaryIO,754 keywords: t.Sequence[str],755 comment_tags: t.Sequence[str],756 options: dict[str, t.Any],761) -> t.Iterator[762 tuple[int, str, t.Union[t.Optional[str], tuple[t.Optional[str], ...]], list[str]]763]:757) -> t.Iterator[tuple[int, str, str | None | tuple[str | None, ...], list[str]]]:758 """Babel extraction method for Jinja templates.759760 .. versionchanged:: 2.3761 Basic support for translation comments was added. If `comment_tags`
83 unmodified lines
modified:src/jinja2/filters.py+66 added-72 removed
55 unmodified lines
565758def make_attrgetter(59 environment: "Environment",60 attribute: t.Optional[t.Union[str, int]],61 postprocess: t.Optional[t.Callable[[t.Any], t.Any]] = None,62 default: t.Optional[t.Any] = None,60 attribute: str | int | None,61 postprocess: t.Callable[[t.Any], t.Any] | None = None,62 default: t.Any | None = None,63) -> t.Callable[[t.Any], t.Any]:64 """Returns a callable that looks up the given attribute from a65 passed object with the rules of the environment. Dots are allowed66 to access attributes of attributes. Integer parts in paths are
17 unmodified lines
848586def make_multi_attrgetter(87 environment: "Environment",88 attribute: t.Optional[t.Union[str, int]],89 postprocess: t.Optional[t.Callable[[t.Any], t.Any]] = None,88 attribute: str | int | None,89 postprocess: t.Callable[[t.Any], t.Any] | None = None,90) -> t.Callable[[t.Any], list[t.Any]]:91 """Returns a callable that looks up the given comma separated92 attributes from a passed object with the rules of the environment.93 Dots are allowed to access attributes of each attribute. Integer
4 unmodified lines
9899 Examples of attribute: "attr1,attr2", "attr1.inner1.0,attr2.inner2.0", etc.100 """101 if isinstance(attribute, str):102 split: t.Sequence[t.Union[str, int, None]] = attribute.split(",")102 split: t.Sequence[str | int | None] = attribute.split(",")103 else:104 split = [attribute]105106 parts = [_prepare_attribute_parts(item) for item in split]
17 unmodified lines
124 return attrgetter125126127def _prepare_attribute_parts(128 attr: t.Optional[t.Union[str, int]],129) -> list[t.Union[str, int]]:128 attr: str | int | None,129) -> list[str | int]:130 if attr is None:131 return []132133 if isinstance(attr, str):
1 unmodified line
135136 return [attr]137138139def do_forceescape(value: "t.Union[str, HasHTML]") -> Markup:139def do_forceescape(value: "str | HasHTML") -> Markup:140 """Enforce HTML escaping. This will probably double escape variables."""141 if hasattr(value, "__html__"):142 value = t.cast("HasHTML", value).__html__()143144 return escape(str(value))145146147def do_urlencode(148 value: t.Union[str, t.Mapping[str, t.Any], t.Iterable[tuple[str, t.Any]]],148 value: str | t.Mapping[str, t.Any] | t.Iterable[tuple[str, t.Any]],149) -> str:150 """Quote data for use in a URL path or query using UTF-8.151152 Basic wrapper around :func:`urllib.parse.quote` when given a
23 unmodified lines
176177178@pass_eval_context179def do_replace(180 eval_ctx: "EvalContext", s: str, old: str, new: str, count: t.Optional[int] = None180 eval_ctx: "EvalContext", s: str, old: str, new: str, count: int | None = None181) -> str:182 """Return a copy of the value with all occurrences of a substring183 replaced with a new one. The first argument is the substring184 that should be replaced, the second is the replacement string.
35 unmodified lines
220 """Convert a value to lowercase."""221 return soft_str(s).lower()222223224def do_items(value: t.Union[t.Mapping[K, V], Undefined]) -> t.Iterator[tuple[K, V]]:224def do_items(value: t.Mapping[K, V] | Undefined) -> t.Iterator[tuple[K, V]]:225 """Return an iterator over the ``(key, value)`` items of a mapping.226227 ``x|items`` is the same as ``x.items()``, except if ``x`` is228 undefined an empty iterator is returned.
158 unmodified lines
387 environment: "Environment",388 value: "t.Iterable[V]",389 reverse: bool = False,390 case_sensitive: bool = False,391 attribute: t.Optional[t.Union[str, int]] = None,391 attribute: str | int | None = None,392) -> "list[V]":393 """Sort an iterable using Python's :func:`sorted`.394395 .. sourcecode:: jinja
46 unmodified lines
442def sync_do_unique(443 environment: "Environment",444 value: "t.Iterable[V]",445 case_sensitive: bool = False,446 attribute: t.Optional[t.Union[str, int]] = None,446 attribute: str | int | None = None,447) -> "t.Iterator[V]":448 """Returns a list of unique items from the given iterable.449450 .. sourcecode:: jinja
22 unmodified lines
473474@async_variant(sync_do_unique) # type: ignore475async def do_unique(476 environment: "Environment",477 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",477 value: "t.AsyncIterable[V] | t.Iterable[V]",478 case_sensitive: bool = False,479 attribute: t.Optional[t.Union[str, int]] = None,479 attribute: str | int | None = None,480) -> "t.Iterator[V]":481 return sync_do_unique(482 environment, await auto_to_list(value), case_sensitive, attribute483 )
3 unmodified lines
487 environment: "Environment",488 value: "t.Iterable[V]",489 func: "t.Callable[..., V]",490 case_sensitive: bool,491 attribute: t.Optional[t.Union[str, int]],492) -> "t.Union[V, Undefined]":491 attribute: str | int | None,492) -> "V | Undefined":493 it = iter(value)494495 try:496 first = next(it)
10 unmodified lines
507def do_min(508 environment: "Environment",509 value: "t.Iterable[V]",510 case_sensitive: bool = False,511 attribute: t.Optional[t.Union[str, int]] = None,512) -> "t.Union[V, Undefined]":511 attribute: str | int | None = None,512) -> "V | Undefined":513 """Return the smallest item from the sequence.514515 .. sourcecode:: jinja516
10 unmodified lines
527def do_max(528 environment: "Environment",529 value: "t.Iterable[V]",530 case_sensitive: bool = False,531 attribute: t.Optional[t.Union[str, int]] = None,532) -> "t.Union[V, Undefined]":531 attribute: str | int | None = None,532) -> "V | Undefined":533 """Return the largest item from the sequence.534535 .. sourcecode:: jinja536
43 unmodified lines
580def sync_do_join(581 eval_ctx: "EvalContext",582 value: t.Iterable[t.Any],583 d: str = "",584 attribute: t.Optional[t.Union[str, int]] = None,584 attribute: str | int | None = None,585) -> str:586 """Return a string which is the concatenation of the strings in the587 sequence. The separator between elements is an empty string per588 default, you can define it with the optional parameter:
47 unmodified lines
636637@async_variant(sync_do_join) # type: ignore638async def do_join(639 eval_ctx: "EvalContext",640 value: t.Union[t.AsyncIterable[t.Any], t.Iterable[t.Any]],640 value: t.AsyncIterable[t.Any] | t.Iterable[t.Any],641 d: str = "",642 attribute: t.Optional[t.Union[str, int]] = None,642 attribute: str | int | None = None,643) -> str:644 return sync_do_join(eval_ctx, await auto_to_list(value), d, attribute)645646
2 unmodified lines
649 return soft_str(value).center(width)650651652@pass_environment653def sync_do_first(654 environment: "Environment", seq: "t.Iterable[V]"655) -> "t.Union[V, Undefined]":653def sync_do_first(environment: "Environment", seq: "t.Iterable[V]") -> "V | Undefined":654 """Return the first item of a sequence."""655 try:656 return next(iter(seq))657 except StopIteration:
1 unmodified line
659660661@async_variant(sync_do_first) # type: ignore662async def do_first(665 environment: "Environment", seq: "t.Union[t.AsyncIterable[V], t.Iterable[V]]"666) -> "t.Union[V, Undefined]":663 environment: "Environment", seq: "t.AsyncIterable[V] | t.Iterable[V]"664) -> "V | Undefined":665 try:666 return await auto_aiter(seq).__anext__()667 except StopAsyncIteration:668 return environment.undefined("No first item, sequence was empty.")669670671@pass_environment674def do_last(675 environment: "Environment", seq: "t.Reversible[V]"676) -> "t.Union[V, Undefined]":672def do_last(environment: "Environment", seq: "t.Reversible[V]") -> "V | Undefined":673 """Return the last item of a sequence.674675 Note: Does not work with generators. You may want to explicitly676 convert it to a list:
11 unmodified lines
688# No async do_last, it may not be safe in async mode.689690691@pass_context696def do_random(context: "Context", seq: "t.Sequence[V]") -> "t.Union[V, Undefined]":692def do_random(context: "Context", seq: "t.Sequence[V]") -> "V | Undefined":693 """Return a random item from the sequence."""694 try:695 return random.choice(seq)696 except IndexError:697 return context.environment.undefined("No random item, sequence was empty.")698699704def do_filesizeformat(value: t.Union[str, float, int], binary: bool = False) -> str:700def do_filesizeformat(value: str | float | int, binary: bool = False) -> str:701 """Format the value like a 'human-readable' file size (i.e. 13 kB,702 4.1 MB, 102 Bytes, etc). Per default decimal prefixes are used (Mega,703 Giga, etc.), if the second parameter is set to `True` the binary704 prefixes are used (Mebi, Gibi).
36 unmodified lines
741@pass_eval_context742def do_urlize(743 eval_ctx: "EvalContext",744 value: str,749 trim_url_limit: t.Optional[int] = None,745 trim_url_limit: int | None = None,746 nofollow: bool = False,751 target: t.Optional[str] = None,752 rel: t.Optional[str] = None,753 extra_schemes: t.Optional[t.Iterable[str]] = None,747 target: str | None = None,748 rel: str | None = None,749 extra_schemes: t.Iterable[str] | None = None,750) -> str:751 """Convert URLs in text into clickable links.752753 This may not recognize links in some situations. Usually, a more
64 unmodified lines
818 return rv819820821def do_indent(826 s: str, width: t.Union[int, str] = 4, first: bool = False, blank: bool = False822 s: str, width: int | str = 4, first: bool = False, blank: bool = False823) -> str:824 """Return a copy of the string with each line indented by 4 spaces. The825 first line and blank lines are not indented by default.826
45 unmodified lines
872 s: str,873 length: int = 255,874 killwords: bool = False,875 end: str = "...",880 leeway: t.Optional[int] = None,876 leeway: int | None = None,877) -> str:878 """Return a truncated copy of the string. The length is specified879 with the first parameter which defaults to ``255``. If the second880 parameter is ``true`` the filter will cut the text at length. Otherwise
38 unmodified lines
919 environment: "Environment",920 s: str,921 width: int = 79,922 break_long_words: bool = True,927 wrapstring: t.Optional[str] = None,923 wrapstring: str | None = None,924 break_on_hyphens: bool = True,925) -> str:926 """Wrap a string to the given width. Existing newlines are treated927 as paragraphs to be wrapped separately.
110 unmodified lines
10381039 return soft_str(value) % (kwargs or args)104010411046def do_trim(value: str, chars: t.Optional[str] = None) -> str:1042def do_trim(value: str, chars: str | None = None) -> str:1043 """Strip leading and trailing characters, by default whitespace."""1044 return soft_str(value).strip(chars)104510461051def do_striptags(value: "t.Union[str, HasHTML]") -> str:1047def do_striptags(value: "str | HasHTML") -> str:1048 """Strip SGML/XML tags and replace adjacent whitespace by one space."""1049 if hasattr(value, "__html__"):1050 value = t.cast("HasHTML", value).__html__()10511052 return Markup(str(value)).striptags()105310541055def sync_do_slice(1060 value: "t.Collection[V]", slices: int, fill_with: "t.Optional[V]" = None1056 value: "t.Collection[V]", slices: int, fill_with: "V | None" = None1057) -> "t.Iterator[list[V]]":1058 """Slice an iterator and return a list of lists containing1059 those items. Useful if you want to create a div containing1060 three ul tags that represent columns:
35 unmodified lines
109610971098@async_variant(sync_do_slice) # type: ignore1099async def do_slice(1104 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1100 value: "t.AsyncIterable[V] | t.Iterable[V]",1101 slices: int,1106 fill_with: t.Optional[t.Any] = None,1102 fill_with: t.Any | None = None,1103) -> "t.Iterator[list[V]]":1104 return sync_do_slice(await auto_to_list(value), slices, fill_with)110511061107def do_batch(1112 value: "t.Iterable[V]", linecount: int, fill_with: "t.Optional[V]" = None1108 value: "t.Iterable[V]", linecount: int, fill_with: "V | None" = None1109) -> "t.Iterator[list[V]]":1110 """1111 A filter that batches items. It works pretty much like `slice`1112 just the other way round. It returns a list of lists with the
84 unmodified lines
1197@pass_environment1198def sync_do_groupby(1199 environment: "Environment",1200 value: "t.Iterable[V]",1205 attribute: t.Union[str, int],1206 default: t.Optional[t.Any] = None,1201 attribute: str | int,1202 default: t.Any | None = None,1203 case_sensitive: bool = False,1204) -> "list[_GroupTuple]":1205 """Group a sequence of objects by an attribute using Python's1206 :func:`itertools.groupby`. The attribute can use dot notation for
73 unmodified lines
12801281@async_variant(sync_do_groupby) # type: ignore1282async def do_groupby(1283 environment: "Environment",1288 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1289 attribute: t.Union[str, int],1290 default: t.Optional[t.Any] = None,1284 value: "t.AsyncIterable[V] | t.Iterable[V]",1285 attribute: str | int,1286 default: t.Any | None = None,1287 case_sensitive: bool = False,1288) -> "list[_GroupTuple]":1289 expr = make_attrgetter(1290 environment,
17 unmodified lines
1308@pass_environment1309def sync_do_sum(1310 environment: "Environment",1311 iterable: "t.Iterable[V]",1316 attribute: t.Optional[t.Union[str, int]] = None,1312 attribute: str | int | None = None,1313 start: V = 0, # type: ignore1314) -> V:1315 """Returns the sum of a sequence of numbers plus the value of parameter1316 'start' (which defaults to 0). When the sequence is empty it returns
17 unmodified lines
13341335@async_variant(sync_do_sum) # type: ignore1336async def do_sum(1337 environment: "Environment",1342 iterable: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1343 attribute: t.Optional[t.Union[str, int]] = None,1338 iterable: "t.AsyncIterable[V] | t.Iterable[V]",1339 attribute: str | int | None = None,1340 start: V = 0, # type: ignore1341) -> V:1342 rv = start1343
17 unmodified lines
1361 return list(value)136213631364@async_variant(sync_do_list) # type: ignore1369async def do_list(value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]") -> "list[V]":1365async def do_list(value: "t.AsyncIterable[V] | t.Iterable[V]") -> "list[V]":1366 return await auto_to_list(value)136713681369def do_mark_safe(value: str) -> Markup:
15 unmodified lines
1385@typing.overload1386def do_reverse(value: "t.Iterable[V]") -> "t.Iterable[V]": ...138713881393def do_reverse(value: t.Union[str, t.Iterable[V]]) -> t.Union[str, t.Iterable[V]]:1389def do_reverse(value: str | t.Iterable[V]) -> str | t.Iterable[V]:1390 """Reverse the object or return an iterator that iterates over it the other1391 way round.1392 """1393 if isinstance(value, str):
10 unmodified lines
1404 raise FilterArgumentError("argument must be iterable") from e140514061407@pass_environment1412def do_attr(1413 environment: "Environment", obj: t.Any, name: str1414) -> t.Union[Undefined, t.Any]:1408def do_attr(environment: "Environment", obj: t.Any, name: str) -> Undefined | t.Any:1409 """Get an attribute of an object. ``foo|attr("bar")`` works like1410 ``foo.bar``, but returns undefined instead of falling back to ``foo["bar"]``1411 if the attribute doesn't exist.1412
29 unmodified lines
1442 context: "Context",1443 value: t.Iterable[t.Any],1444 *,1445 attribute: str = ...,1452 default: t.Optional[t.Any] = None,1446 default: t.Any | None = None,1447) -> t.Iterable[t.Any]: ...144814491450@pass_context
48 unmodified lines
14991500@typing.overload1501def do_map(1502 context: "Context",1509 value: t.Union[t.AsyncIterable[t.Any], t.Iterable[t.Any]],1503 value: t.AsyncIterable[t.Any] | t.Iterable[t.Any],1504 name: str,1505 *args: t.Any,1506 **kwargs: t.Any,1507) -> t.Iterable[t.Any]: ...
1 unmodified line
15091510@typing.overload1511def do_map(1512 context: "Context",1519 value: t.Union[t.AsyncIterable[t.Any], t.Iterable[t.Any]],1513 value: t.AsyncIterable[t.Any] | t.Iterable[t.Any],1514 *,1515 attribute: str = ...,1522 default: t.Optional[t.Any] = None,1516 default: t.Any | None = None,1517) -> t.Iterable[t.Any]: ...151815191520@async_variant(sync_do_map) # type: ignore1521async def do_map(1522 context: "Context",1529 value: t.Union[t.AsyncIterable[t.Any], t.Iterable[t.Any]],1523 value: t.AsyncIterable[t.Any] | t.Iterable[t.Any],1524 *args: t.Any,1525 **kwargs: t.Any,1526) -> t.AsyncIterable[t.Any]:1527 if value:
36 unmodified lines
15641565@async_variant(sync_do_select) # type: ignore1566async def do_select(1567 context: "Context",1574 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1568 value: "t.AsyncIterable[V] | t.Iterable[V]",1569 *args: t.Any,1570 **kwargs: t.Any,1571) -> "t.AsyncIterator[V]":1572 return async_select_or_reject(context, value, args, kwargs, lambda x: x, False)
27 unmodified lines
16001601@async_variant(sync_do_reject) # type: ignore1602async def do_reject(1603 context: "Context",1610 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1604 value: "t.AsyncIterable[V] | t.Iterable[V]",1605 *args: t.Any,1606 **kwargs: t.Any,1607) -> "t.AsyncIterator[V]":1608 return async_select_or_reject(context, value, args, kwargs, lambda x: not x, False)
31 unmodified lines
16401641@async_variant(sync_do_selectattr) # type: ignore1642async def do_selectattr(1643 context: "Context",1650 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1644 value: "t.AsyncIterable[V] | t.Iterable[V]",1645 *args: t.Any,1646 **kwargs: t.Any,1647) -> "t.AsyncIterator[V]":1648 return async_select_or_reject(context, value, args, kwargs, lambda x: x, True)
29 unmodified lines
16781679@async_variant(sync_do_rejectattr) # type: ignore1680async def do_rejectattr(1681 context: "Context",1688 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1682 value: "t.AsyncIterable[V] | t.Iterable[V]",1683 *args: t.Any,1684 **kwargs: t.Any,1685) -> "t.AsyncIterator[V]":1686 return async_select_or_reject(context, value, args, kwargs, lambda x: not x, True)168716881689@pass_eval_context1690def do_tojson(1697 eval_ctx: "EvalContext", value: t.Any, indent: t.Optional[int] = None1691 eval_ctx: "EvalContext", value: t.Any, indent: int | None = None1692) -> Markup:1693 """Serialize an object to a string of JSON, and mark it safe to1694 render in HTML. This filter is only for use in HTML documents.1695
98 unmodified lines
179417951796async def async_select_or_reject(1797 context: "Context",1804 value: "t.Union[t.AsyncIterable[V], t.Iterable[V]]",1798 value: "t.AsyncIterable[V] | t.Iterable[V]",1799 args: tuple[t.Any, ...],1800 kwargs: dict[str, t.Any],1801 modfunc: t.Callable[[t.Any], t.Any],1802 lookup_attr: bool,
65 unmodified lines
modified:src/jinja2/idtracking.py+6 added-8 removed
30 unmodified lines
313233class Symbols:34 def __init__(35 self, parent: t.Optional["Symbols"] = None, level: t.Optional[int] = None35 self, parent: t.Optional["Symbols"] = None, level: int | None = None36 ) -> None:37 if level is None:38 if parent is None:39 level = 0
9 unmodified lines
49 def analyze_node(self, node: nodes.Node, **kwargs: t.Any) -> None:50 visitor = RootVisitor(self)51 visitor.visit(node, **kwargs)5253 def _define_ref(54 self, name: str, load: t.Optional[tuple[str, t.Optional[str]]] = None55 ) -> str:53 def _define_ref(self, name: str, load: tuple[str, str | None] | None = None) -> str:54 ident = f"l_{self.level}_{name}"55 self.refs[name] = ident56 if load is not None:57 self.loads[ident] = load58 return ident5962 def find_load(self, target: str) -> t.Optional[t.Any]:60 def find_load(self, target: str) -> t.Any | None:61 if target in self.loads:62 return self.loads[target]6364 if self.parent is not None:65 return self.parent.find_load(target)6667 return None6871 def find_ref(self, name: str) -> t.Optional[str]:69 def find_ref(self, name: str) -> str | None:70 if name in self.refs:71 return self.refs[name]7273 if self.parent is not None:
69 unmodified lines
143 self.loads[target] = (VAR_LOAD_RESOLVE, name)144145 def dump_stores(self) -> dict[str, str]:146 rv: dict[str, str] = {}149 node: t.Optional[Symbols] = self147 node: Symbols | None = self148149 while node is not None:150 for name in sorted(node.stores):151 if name not in rv:
4 unmodified lines
156 return rv157158 def dump_param_targets(self) -> set[str]:159 rv = set()162 node: t.Optional[Symbols] = self160 node: Symbols | None = self161162 while node is not None:163 for target, (instr, _) in self.loads.items():164 if instr == VAR_LOAD_PARAMETER:
152 unmodified lines
modified:src/jinja2/lexer.py+14 added-14 removed
260 unmodified lines
261 ) -> None:262 self.message = message263 self.error_class = cls264265 def __call__(self, lineno: int, filename: t.Optional[str]) -> "te.NoReturn":265 def __call__(self, lineno: int, filename: str | None) -> "te.NoReturn":266 raise self.error_class(self.message, lineno, filename)267268269class Token(t.NamedTuple):
54 unmodified lines
324325 def __init__(326 self,327 generator: t.Iterable[Token],328 name: t.Optional[str],329 filename: t.Optional[str],328 name: str | None,329 filename: str | None,330 ):331 self._iter = iter(generator)332 self._pushed: deque[Token] = deque()333 self.name = name
29 unmodified lines
363 """Got n tokens ahead."""364 for _ in range(n):365 next(self)366367 def next_if(self, expr: str) -> t.Optional[Token]:367 def next_if(self, expr: str) -> Token | None:368 """Perform the token test and return the token if it matched.369 Otherwise the return value is `None`.370 """371 if self.current.test(expr):
91 unmodified lines
463464465class _Rule(t.NamedTuple):466 pattern: t.Pattern[str]467 tokens: t.Union[str, tuple[str, ...], tuple[Failure]]468 command: t.Optional[str]467 tokens: str | tuple[str, ...] | tuple[Failure]468 command: str | None469470471class Lexer:472 """Class that implements a lexer for a given environment. Automatically
130 unmodified lines
603604 def tokenize(605 self,606 source: str,607 name: t.Optional[str] = None,608 filename: t.Optional[str] = None,609 state: t.Optional[str] = None,607 name: str | None = None,608 filename: str | None = None,609 state: str | None = None,610 ) -> TokenStream:611 """Calls tokeniter + tokenize and wraps it in a token stream."""612 stream = self.tokeniter(source, name, filename, state)613 return TokenStream(self.wrap(stream, name, filename), name, filename)614615 def wrap(616 self,617 stream: t.Iterable[tuple[int, str, str]],618 name: t.Optional[str] = None,619 filename: t.Optional[str] = None,618 name: str | None = None,619 filename: str | None = None,620 ) -> t.Iterator[Token]:621 """This is called with the stream as returned by `tokenize` and wraps622 every token in a :class:`Token` and converts the value.623 """
44 unmodified lines
668669 def tokeniter(670 self,671 source: str,672 name: t.Optional[str],673 filename: t.Optional[str] = None,674 state: t.Optional[str] = None,672 name: str | None,673 filename: str | None = None,674 state: str | None = None,675 ) -> t.Iterator[tuple[int, str, str]]:676 """This method tokenizes the text and returns the tokens in a677 generator. Use this method if you just want to tokenize a template.678
190 unmodified lines
modified:src/jinja2/loaders.py+11 added-15 removed
72 unmodified lines
73 has_source_access = True7475 def get_source(76 self, environment: "Environment", template: str77 ) -> tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:77 ) -> tuple[str, str | None, t.Callable[[], bool] | None]:78 """Get the template source, filename and reload helper for a template.79 It's passed the environment and template name and has to return a80 tuple in the form ``(source, filename, uptodate)`` or raise a81 `TemplateNotFound` error if it can't locate the template.
26 unmodified lines
108 def load(109 self,110 environment: "Environment",111 name: str,112 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,112 globals: t.MutableMapping[str, t.Any] | None = None,113 ) -> "Template":114 """Loads a template. This method looks up the template in the cache115 or loads one by calling :meth:`get_source`. Subclasses should not116 override this method as loaders working on collections of other
246 unmodified lines
363 self._template_root = template_root364365 def get_source(366 self, environment: "Environment", template: str367 ) -> tuple[str, str, t.Optional[t.Callable[[], bool]]]:367 ) -> tuple[str, str, t.Callable[[], bool] | None]:368 # Use posixpath even on Windows to avoid "drive:" or UNC369 # segments breaking out of the search directory. Use normpath to370 # convert Windows altsep to sep.371 p = os.path.normpath(372 posixpath.join(self._template_root, *split_template_path(template))373 )374 up_to_date: t.Optional[t.Callable[[], bool]]374 up_to_date: t.Callable[[], bool] | None375376 if self._archive is None:377 # Package is a directory.378 if not os.path.isfile(p):
95 unmodified lines
474 def __init__(475 self,476 load_func: t.Callable[477 [str],478 t.Optional[479 t.Union[480 str, tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]481 ]482 ],478 str | tuple[str, str | None, t.Callable[[], bool] | None] | None,479 ],480 ) -> None:481 self.load_func = load_func482483 def get_source(484 self, environment: "Environment", template: str489 ) -> tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:485 ) -> tuple[str, str | None, t.Callable[[], bool] | None]:486 rv = self.load_func(template)487488 if rv is None:489 raise TemplateNotFound(template)
34 unmodified lines
524 return loader, name525526 def get_source(527 self, environment: "Environment", template: str532 ) -> tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:528 ) -> tuple[str, str | None, t.Callable[[], bool] | None]:529 loader, name = self.get_loader(template)530 try:531 return loader.get_source(environment, name)532 except TemplateNotFound as e:
5 unmodified lines
538 def load(539 self,540 environment: "Environment",541 name: str,546 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,542 globals: t.MutableMapping[str, t.Any] | None = None,543 ) -> "Template":544 loader, local_name = self.get_loader(name)545 try:546 return loader.load(environment, local_name, globals)
28 unmodified lines
575 self.loaders = loaders576577 def get_source(578 self, environment: "Environment", template: str583 ) -> tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:579 ) -> tuple[str, str | None, t.Callable[[], bool] | None]:580 for loader in self.loaders:581 try:582 return loader.get_source(environment, template)583 except TemplateNotFound:
4 unmodified lines
588 def load(589 self,590 environment: "Environment",591 name: str,596 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,592 globals: t.MutableMapping[str, t.Any] | None = None,593 ) -> "Template":594 for loader in self.loaders:595 try:596 return loader.load(environment, name, globals)
63 unmodified lines
660 def load(661 self,662 environment: "Environment",663 name: str,668 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,664 globals: t.MutableMapping[str, t.Any] | None = None,665 ) -> "Template":666 key = self.get_template_key(name)667 module = f"{self.package_name}.{key}"668 mod = getattr(self.module, module, None)
17 unmodified lines
modified:src/jinja2/meta.py+2 added-2 removed
54 unmodified lines
55 return codegen.undeclared_identifiers565758_ref_types = (nodes.Extends, nodes.FromImport, nodes.Import, nodes.Include)59_RefType = t.Union[nodes.Extends, nodes.FromImport, nodes.Import, nodes.Include]59_RefType = nodes.Extends | nodes.FromImport | nodes.Import | nodes.Include606162def find_referenced_templates(ast: nodes.Template) -> t.Iterator[t.Optional[str]]:62def find_referenced_templates(ast: nodes.Template) -> t.Iterator[str | None]:63 """Finds all the referenced templates from the AST. This will return an64 iterator over all the hardcoded template extensions, inclusions and65 imports. If dynamic inheritance or inclusion is used, `None` will be66 yielded.
46 unmodified lines
modified:src/jinja2/nativetypes.py+1 added-1 removed
11 unmodified lines
12from .environment import Environment13from .environment import Template141516def native_concat(values: t.Iterable[t.Any]) -> t.Optional[t.Any]:16def native_concat(values: t.Iterable[t.Any]) -> t.Any | None:17 """Return a native Python type from the list of compiled nodes. If18 the result is a single node, its value is returned. Otherwise, the19 nodes are concatenated as strings. If the result can be parsed with20 :func:`ast.literal_eval`, the parsed value is returned. Otherwise,
110 unmodified lines
modified:src/jinja2/nodes.py+47 added-49 removed
72 unmodified lines
73 to it in extensions.74 """7576 def __init__(77 self, environment: "Environment", template_name: t.Optional[str] = None77 self, environment: "Environment", template_name: str | None = None78 ) -> None:79 self.environment = environment80 if callable(environment.autoescape):81 self.autoescape = environment.autoescape(template_name)
8 unmodified lines
90 self.__dict__.clear()91 self.__dict__.update(old)929394def get_eval_context(node: "Node", ctx: t.Optional[EvalContext]) -> EvalContext:94def get_eval_context(node: "Node", ctx: EvalContext | None) -> EvalContext:95 if ctx is None:96 if node.environment is None:97 raise RuntimeError(98 "if no eval context is passed, the node must have an"
37 unmodified lines
136 raise TypeError(137 f"{type(self).__name__!r} takes 0 or {len(self.fields)}"138 f" argument{'s' if len(self.fields) != 1 else ''}"139 )140 for name, arg in zip(self.fields, fields):140 for name, arg in zip(self.fields, fields, strict=False):141 setattr(self, name, arg)142 for attr in self.attributes:143 setattr(self, attr, attributes.pop(attr, None))144 if attributes:145 raise TypeError(f"unknown attribute {next(iter(attributes))!r}")146147 def iter_fields(148 self,149 exclude: t.Optional[t.Container[str]] = None,150 only: t.Optional[t.Container[str]] = None,149 exclude: t.Container[str] | None = None,150 only: t.Container[str] | None = None,151 ) -> t.Iterator[tuple[str, t.Any]]:152 """This method iterates over all fields that are defined and yields153 ``(key, value)`` tuples. Per default all fields are returned, but154 it's possible to limit that to some fields by providing the `only`
12 unmodified lines
167 pass168169 def iter_child_nodes(170 self,171 exclude: t.Optional[t.Container[str]] = None,172 only: t.Optional[t.Container[str]] = None,171 exclude: t.Container[str] | None = None,172 only: t.Container[str] | None = None,173 ) -> t.Iterator["Node"]:174 """Iterates over all direct child nodes of the node. This iterates175 over all fields and yields the values of they are nodes. If the value176 of a field is a list all the nodes in that list are returned.
5 unmodified lines
182 yield n183 elif isinstance(item, Node):184 yield item185186 def find(self, node_type: type[_NodeBound]) -> t.Optional[_NodeBound]:186 def find(self, node_type: type[_NodeBound]) -> _NodeBound | None:187 """Find the first node of a given type. If no such node exists the188 return value is `None`.189 """190 for result in self.find_all(node_type):
1 unmodified line
192193 return None194195 def find_all(196 self, node_type: t.Union[type[_NodeBound], tuple[type[_NodeBound], ...]]196 self, node_type: type[_NodeBound] | tuple[type[_NodeBound], ...]197 ) -> t.Iterator[_NodeBound]:198 """Find all the nodes of a given type. If the type is a tuple,199 the check is performed for any of the tuple items.200 """
48 unmodified lines
249 args_str = ", ".join(f"{a}={getattr(self, a, None)!r}" for a in self.fields)250 return f"{type(self).__name__}({args_str})"251252 def dump(self) -> str:253 def _dump(node: t.Union[Node, t.Any]) -> None:253 def _dump(node: Node | t.Any) -> None:254 if not isinstance(node, Node):255 buf.append(repr(node))256 return257
71 unmodified lines
329 target: Node330 iter: Node331 body: list[Node]332 else_: list[Node]333 test: t.Optional[Node]333 test: Node | None334 recursive: bool335336337class If(Stmt):
97 unmodified lines
435 """436437 fields = ("template", "names", "with_context")438 template: "Expr"439 names: list[t.Union[str, tuple[str, str]]]439 names: list[str | tuple[str, str]]440 with_context: bool441442443class ExprStmt(Stmt):
24 unmodified lines
468 """Baseclass for all expressions."""469470 abstract = True471472 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:472 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:473 """Return the value of the expression as constant or raise474 :exc:`Impossible` if this was not possible.475476 An :class:`EvalContext` can be provided, if none is given
18 unmodified lines
495 right: Expr496 operator: str497 abstract = True498499 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:499 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:500 eval_ctx = get_eval_context(self, eval_ctx)501502 # intercepted operators cannot be folded at compile time503 if (
15 unmodified lines
519 node: Expr520 operator: str521 abstract = True522523 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:523 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:524 eval_ctx = get_eval_context(self, eval_ctx)525526 # intercepted operators cannot be folded at compile time527 if (
55 unmodified lines
583584 fields = ("value",)585 value: t.Any586587 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:587 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:588 return self.value589590 @classmethod591 def from_untrusted(592 cls,593 value: t.Any,594 lineno: t.Optional[int] = None,595 environment: "t.Optional[Environment]" = None,594 lineno: int | None = None,595 environment: "Environment | None" = None,596 ) -> "Const":597 """Return a const object if the value is representable as598 constant value in the generated code, otherwise it will raise599 an `Impossible` exception.
10 unmodified lines
610611 fields = ("data",)612 data: str613614 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:614 def as_const(self, eval_ctx: EvalContext | None = None) -> str:615 eval_ctx = get_eval_context(self, eval_ctx)616 if eval_ctx.volatile:617 raise Impossible()618 if eval_ctx.autoescape:
10 unmodified lines
629 fields = ("items", "ctx")630 items: list[Expr]631 ctx: str632633 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> tuple[t.Any, ...]:633 def as_const(self, eval_ctx: EvalContext | None = None) -> tuple[t.Any, ...]:634 eval_ctx = get_eval_context(self, eval_ctx)635 return tuple(x.as_const(eval_ctx) for x in self.items)636637 def can_assign(self) -> bool:
8 unmodified lines
646647 fields = ("items",)648 items: list[Expr]649650 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> list[t.Any]:650 def as_const(self, eval_ctx: EvalContext | None = None) -> list[t.Any]:651 eval_ctx = get_eval_context(self, eval_ctx)652 return [x.as_const(eval_ctx) for x in self.items]653654
4 unmodified lines
659660 fields = ("items",)661 items: list["Pair"]662663 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> dict[t.Any, t.Any]:663 def as_const(self, eval_ctx: EvalContext | None = None) -> dict[t.Any, t.Any]:664 eval_ctx = get_eval_context(self, eval_ctx)665 return dict(x.as_const(eval_ctx) for x in self.items)666667
3 unmodified lines
671 fields = ("key", "value")672 key: Expr673 value: Expr674675 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> tuple[t.Any, t.Any]:675 def as_const(self, eval_ctx: EvalContext | None = None) -> tuple[t.Any, t.Any]:676 eval_ctx = get_eval_context(self, eval_ctx)677 return self.key.as_const(eval_ctx), self.value.as_const(eval_ctx)678679
3 unmodified lines
683 fields = ("key", "value")684 key: str685 value: Expr686687 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> tuple[str, t.Any]:687 def as_const(self, eval_ctx: EvalContext | None = None) -> tuple[str, t.Any]:688 eval_ctx = get_eval_context(self, eval_ctx)689 return self.key, self.value.as_const(eval_ctx)690691
4 unmodified lines
696697 fields = ("test", "expr1", "expr2")698 test: Expr699 expr1: Expr700 expr2: t.Optional[Expr]700 expr2: Expr | None701702 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:702 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:703 eval_ctx = get_eval_context(self, eval_ctx)704 if self.test.as_const(eval_ctx):705 return self.expr1.as_const(eval_ctx)706
4 unmodified lines
711 return self.expr2.as_const(eval_ctx)712713714def args_as_const(715 node: t.Union["_FilterTestCommon", "Call"], eval_ctx: t.Optional[EvalContext]715 node: t.Union["_FilterTestCommon", "Call"], eval_ctx: EvalContext | None716) -> tuple[list[t.Any], dict[t.Any, t.Any]]:717 args = [x.as_const(eval_ctx) for x in node.args]718 kwargs = dict(x.as_const(eval_ctx) for x in node.kwargs)719
17 unmodified lines
737 node: Expr738 name: str739 args: list[Expr]740 kwargs: list[Pair]741 dyn_args: t.Optional[Expr]742 dyn_kwargs: t.Optional[Expr]741 dyn_args: Expr | None742 dyn_kwargs: Expr | None743 abstract = True744 _is_filter = True745746 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:746 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:747 eval_ctx = get_eval_context(self, eval_ctx)748749 if eval_ctx.volatile:750 raise Impossible()
36 unmodified lines
787 If ``node`` is ``None``, the filter is being used in a filter block788 and is applied to the content of the block.789 """790791 node: t.Optional[Expr] # type: ignore791 node: Expr | None # type: ignore792793 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:793 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:794 if self.node is None:795 raise Impossible()796797 return super().as_const(eval_ctx=eval_ctx)
23 unmodified lines
821 fields = ("node", "args", "kwargs", "dyn_args", "dyn_kwargs")822 node: Expr823 args: list[Expr]824 kwargs: list[Keyword]825 dyn_args: t.Optional[Expr]826 dyn_kwargs: t.Optional[Expr]825 dyn_args: Expr | None826 dyn_kwargs: Expr | None827828829class Getitem(Expr):830 """Get an attribute or item from an expression and prefer the item."""
2 unmodified lines
833 node: Expr834 arg: Expr835 ctx: str836837 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:837 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:838 if self.ctx != "load":839 raise Impossible()840841 eval_ctx = get_eval_context(self, eval_ctx)
15 unmodified lines
857 node: Expr858 attr: str859 ctx: str860861 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:861 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:862 if self.ctx != "load":863 raise Impossible()864865 eval_ctx = get_eval_context(self, eval_ctx)
9 unmodified lines
875 :class:`Subscript`.876 """877878 fields = ("start", "stop", "step")879 start: t.Optional[Expr]880 stop: t.Optional[Expr]881 step: t.Optional[Expr]879 start: Expr | None880 stop: Expr | None881 step: Expr | None882883 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> slice:883 def as_const(self, eval_ctx: EvalContext | None = None) -> slice:884 eval_ctx = get_eval_context(self, eval_ctx)885886 def const(obj: t.Optional[Expr]) -> t.Optional[t.Any]:886 def const(obj: Expr | None) -> t.Any | None:887 if obj is None:888 return None889 return obj.as_const(eval_ctx)890
7 unmodified lines
898899 fields = ("nodes",)900 nodes: list[Expr]901902 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:902 def as_const(self, eval_ctx: EvalContext | None = None) -> str:903 eval_ctx = get_eval_context(self, eval_ctx)904 return "".join(str(x.as_const(eval_ctx)) for x in self.nodes)905906
5 unmodified lines
912 fields = ("expr", "ops")913 expr: Expr914 ops: list["Operand"]915916 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:916 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:917 eval_ctx = get_eval_context(self, eval_ctx)918 result = value = self.expr.as_const(eval_ctx)919920 try:
67 unmodified lines
988 """Short circuited AND."""989990 operator = "and"991992 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:992 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:993 eval_ctx = get_eval_context(self, eval_ctx)994 return self.left.as_const(eval_ctx) and self.right.as_const(eval_ctx)995996
1 unmodified line
998 """Short circuited OR."""9991000 operator = "or"10011002 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:1002 def as_const(self, eval_ctx: EvalContext | None = None) -> t.Any:1003 eval_ctx = get_eval_context(self, eval_ctx)1004 return self.left.as_const(eval_ctx) or self.right.as_const(eval_ctx)10051006
74 unmodified lines
10811082 fields = ("expr",)1083 expr: Expr10841085 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> Markup:1085 def as_const(self, eval_ctx: EvalContext | None = None) -> Markup:1086 eval_ctx = get_eval_context(self, eval_ctx)1087 return Markup(self.expr.as_const(eval_ctx))10881089
6 unmodified lines
10961097 fields = ("expr",)1098 expr: Expr10991100 def as_const(1101 self, eval_ctx: t.Optional[EvalContext] = None1102 ) -> t.Union[Markup, t.Any]:1100 def as_const(self, eval_ctx: EvalContext | None = None) -> Markup | t.Any:1101 eval_ctx = get_eval_context(self, eval_ctx)1102 if eval_ctx.volatile:1103 raise Impossible()1104 expr = self.expr.as_const(eval_ctx)
96 unmodified lines
modified:src/jinja2/optimizer.py+1 added-1 removed
23 unmodified lines
24 return t.cast(nodes.Node, optimizer.visit(node))252627class Optimizer(NodeTransformer):28 def __init__(self, environment: "t.Optional[Environment]") -> None:28 def __init__(self, environment: "Environment | None") -> None:29 self.environment = environment3031 def generic_visit(32 self, node: nodes.Node, *args: t.Any, **kwargs: t.Any
16 unmodified lines
modified:src/jinja2/parser.py+29 added-35 removed
52 unmodified lines
53 def __init__(54 self,55 environment: "Environment",56 source: str,57 name: t.Optional[str] = None,58 filename: t.Optional[str] = None,59 state: t.Optional[str] = None,57 name: str | None = None,58 filename: str | None = None,59 state: str | None = None,60 ) -> None:61 self.environment = environment62 self.stream = environment._tokenize(source, name, filename, state)63 self.name = name64 self.filename = filename65 self.closed = False66 self.extensions: dict[67 str, t.Callable[[Parser], t.Union[nodes.Node, list[nodes.Node]]]67 str, t.Callable[[Parser], nodes.Node | list[nodes.Node]]68 ] = {}69 for extension in environment.iter_extensions():70 for tag in extension.tags:71 self.extensions[tag] = extension.parse
3 unmodified lines
7576 def fail(77 self,78 msg: str,79 lineno: t.Optional[int] = None,79 lineno: int | None = None,80 exc: type[TemplateSyntaxError] = TemplateSyntaxError,81 ) -> "te.NoReturn":82 """Convenience method that raises `exc` with the message, passed83 line number or last line number as well as the current name and
4 unmodified lines
88 raise exc(msg, lineno, self.name, self.filename)8990 def _fail_ut_eof(91 self,92 name: t.Optional[str],92 name: str | None,93 end_token_stack: list[tuple[str, ...]],94 lineno: t.Optional[int],94 lineno: int | None,95 ) -> "te.NoReturn":96 expected: set[str] = set()97 for exprs in end_token_stack:98 expected.update(map(describe_token_expr, exprs))99 if end_token_stack:100 currently_looking: t.Optional[str] = " or ".join(100 currently_looking: str | None = " or ".join(101 map(repr, map(describe_token_expr, end_token_stack[-1]))102 )103 else:104 currently_looking = None
21 unmodified lines
126 )127128 self.fail(" ".join(message), lineno)129130 def fail_unknown_tag(131 self, name: str, lineno: t.Optional[int] = None132 ) -> "te.NoReturn":130 def fail_unknown_tag(self, name: str, lineno: int | None = None) -> "te.NoReturn":131 """Called if the parser encounters an unknown tag. Tries to fail132 with a human readable error message that could help to identify133 the problem.134 """135 self._fail_ut_eof(name, self._end_token_stack, lineno)136137 def fail_eof(138 self,141 end_tokens: t.Optional[tuple[str, ...]] = None,142 lineno: t.Optional[int] = None,139 end_tokens: tuple[str, ...] | None = None,140 lineno: int | None = None,141 ) -> "te.NoReturn":142 """Like fail_unknown_tag but for end of template situations."""143 stack = list(self._end_token_stack)144 if end_tokens is not None:145 stack.append(end_tokens)146 self._fail_ut_eof(None, stack, lineno)147150 def is_tuple_end(self, extra_end_rules: t.Optional[tuple[str, ...]] = None) -> bool:148 def is_tuple_end(self, extra_end_rules: tuple[str, ...] | None = None) -> bool:149 """Are we at the end of a tuple?"""150 if self.stream.current.type in ("variable_end", "block_end", "rparen"):151 return True152 elif extra_end_rules is not None:153 return self.stream.current.test_any(extra_end_rules) # type: ignore154 return False155158 def free_identifier(self, lineno: t.Optional[int] = None) -> nodes.InternalName:156 def free_identifier(self, lineno: int | None = None) -> nodes.InternalName:157 """Return a new free identifier as :class:`~jinja2.nodes.InternalName`."""158 self._last_identifier += 1159 rv = object.__new__(nodes.InternalName)160 nodes.Node.__init__(rv, f"fi{self._last_identifier}", lineno=lineno)161 return rv162165 def parse_statement(self) -> t.Union[nodes.Node, list[nodes.Node]]:163 def parse_statement(self) -> nodes.Node | list[nodes.Node]:164 """Parse a single statement."""165 token = self.stream.current166 if token.type != "name":167 self.fail("tag name expected", token.lineno)
49 unmodified lines
217 if drop_needle:218 next(self.stream)219 return result220223 def parse_set(self) -> t.Union[nodes.Assign, nodes.AssignBlock]:221 def parse_set(self) -> nodes.Assign | nodes.AssignBlock:222 """Parse an assign statement."""223 lineno = next(self.stream).lineno224 target = self.parse_assign_target(with_namespace=True)225 if self.stream.skip_if("assign"):
235 unmodified lines
461 def parse_assign_target(462 self,463 with_tuple: bool = True,464 name_only: bool = False,467 extra_end_rules: t.Optional[tuple[str, ...]] = None,465 extra_end_rules: tuple[str, ...] | None = None,466 with_namespace: bool = False,469 ) -> t.Union[nodes.NSRef, nodes.Name, nodes.Tuple]: ...467 ) -> nodes.NSRef | nodes.Name | nodes.Tuple: ...468469 def parse_assign_target(470 self,471 with_tuple: bool = True,472 name_only: bool = False,475 extra_end_rules: t.Optional[tuple[str, ...]] = None,473 extra_end_rules: tuple[str, ...] | None = None,474 with_namespace: bool = False,477 ) -> t.Union[nodes.NSRef, nodes.Name, nodes.Tuple]:475 ) -> nodes.NSRef | nodes.Name | nodes.Tuple:476 """Parse an assignment target. As Jinja allows assignments to477 tuples, this function can parse all allowed assignment targets. Per478 default assignments to tuples are parsed, that can be disable however479 by setting `with_tuple` to `False`. If only assignments to names are
36 unmodified lines
516517 def parse_condexpr(self) -> nodes.Expr:518 lineno = self.stream.current.lineno519 expr1 = self.parse_or()522 expr3: t.Optional[nodes.Expr]520 expr3: nodes.Expr | None521522 while self.stream.skip_if("name:if"):523 expr2 = self.parse_or()524 if self.stream.skip_if("name:else"):
156 unmodified lines
681 def parse_tuple(682 self,683 simplified: bool = False,684 with_condexpr: bool = True,687 extra_end_rules: t.Optional[tuple[str, ...]] = None,685 extra_end_rules: tuple[str, ...] | None = None,686 explicit_parentheses: bool = False,687 with_namespace: bool = False,690 ) -> t.Union[nodes.Tuple, nodes.Expr]:688 ) -> nodes.Tuple | nodes.Expr:689 """Works like `parse_expression` but if multiple expressions are690 delimited by a comma a :class:`~jinja2.nodes.Tuple` node is created.691 This method could also return a regular expression instead of a tuple692 if no commas where found.
108 unmodified lines
801 else:802 break803 return node804807 def parse_subscript(808 self, node: nodes.Expr809 ) -> t.Union[nodes.Getattr, nodes.Getitem]:805 def parse_subscript(self, node: nodes.Expr) -> nodes.Getattr | nodes.Getitem:806 token = next(self.stream)807 arg: nodes.Expr808809 if token.type == "dot":
22 unmodified lines
832 self.fail("expected subscript expression", token.lineno)833834 def parse_subscribed(self) -> nodes.Expr:835 lineno = self.stream.current.lineno840 args: list[t.Optional[nodes.Expr]]836 args: list[nodes.Expr | None]837838 if self.stream.current.type == "colon":839 next(self.stream)840 args = [None]
26 unmodified lines
867 self,868 ) -> tuple[869 list[nodes.Expr],870 list[nodes.Keyword],875 t.Union[nodes.Expr, None],876 t.Union[nodes.Expr, None],871 nodes.Expr | None,872 nodes.Expr | None,873 ]:874 token = self.stream.expect("lparen")875 args = []876 kwargs = []
49 unmodified lines
926 args, kwargs, dyn_args, dyn_kwargs = self.parse_call_args()927 return nodes.Call(node, args, kwargs, dyn_args, dyn_kwargs, lineno=token.lineno)928929 def parse_filter(934 self, node: t.Optional[nodes.Expr], start_inline: bool = False935 ) -> t.Optional[nodes.Expr]:930 self, node: nodes.Expr | None, start_inline: bool = False931 ) -> nodes.Expr | None:932 while self.stream.current.type == "pipe" or start_inline:933 if not start_inline:934 next(self.stream)935 token = self.stream.expect("name")
50 unmodified lines
986 if negated:987 node = nodes.Not(node, lineno=token.lineno)988 return node989994 def subparse(995 self, end_tokens: t.Optional[tuple[str, ...]] = None996 ) -> list[nodes.Node]:990 def subparse(self, end_tokens: tuple[str, ...] | None = None) -> list[nodes.Node]:991 body: list[nodes.Node] = []992 data_buffer: list[nodes.Node] = []993 add_data = data_buffer.append994
47 unmodified lines
modified:src/jinja2/runtime.py+12 added-12 removed
90 unmodified lines
919293def new_context(94 environment: "Environment",95 template_name: t.Optional[str],95 template_name: str | None,96 blocks: dict[str, t.Callable[["Context"], t.Iterator[str]]],97 vars: t.Optional[dict[str, t.Any]] = None,97 vars: dict[str, t.Any] | None = None,98 shared: bool = False,99 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,100 locals: t.Optional[t.Mapping[str, t.Any]] = None,99 globals: t.MutableMapping[str, t.Any] | None = None,100 locals: t.Mapping[str, t.Any] | None = None,101) -> "Context":102 """Internal helper for context creation."""103 if vars is None:104 vars = {}
60 unmodified lines
165 def __init__(166 self,167 environment: "Environment",168 parent: dict[str, t.Any],169 name: t.Optional[str],169 name: str | None,170 blocks: dict[str, t.Callable[["Context"], t.Iterator[str]]],171 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,171 globals: t.MutableMapping[str, t.Any] | None = None,172 ):173 self.parent = parent174 self.vars: dict[str, t.Any] = {}175 self.environment: Environment = environment
130 unmodified lines
306 "value was undefined because a callable raised a"307 " StopIteration exception"308 )309310 def derived(self, locals: t.Optional[dict[str, t.Any]] = None) -> "Context":310 def derived(self, locals: dict[str, t.Any] | None = None) -> "Context":311 """Internal helper function to create a derived context. This is312 used in situations where the system needs a new context in the same313 template that is independent.314 """
83 unmodified lines
398399 #: Current iteration of the loop, starting at 0.400 index0 = -1401402 _length: t.Optional[int] = None402 _length: int | None = None403 _after: t.Any = missing404 _current: t.Any = missing405 _before: t.Any = missing406 _last_changed_value: t.Any = missing
185 unmodified lines
592 _iterator: t.AsyncIterator[t.Any] # type: ignore593594 @staticmethod595 def _to_iterator( # type: ignore596 iterable: t.Union[t.Iterable[V], t.AsyncIterable[V]],596 iterable: t.Iterable[V] | t.AsyncIterable[V],597 ) -> t.AsyncIterator[V]:598 return auto_aiter(iterable)599600 @property
69 unmodified lines
670 arguments: list[str],671 catch_kwargs: bool,672 catch_varargs: bool,673 caller: bool,674 default_autoescape: t.Optional[bool] = None,674 default_autoescape: bool | None = None,675 ):676 self._environment = environment677 self._func = func678 self._argument_count = len(arguments)
137 unmodified lines
816 )817818 def __init__(819 self,820 hint: t.Optional[str] = None,820 hint: str | None = None,821 obj: t.Any = missing,822 name: t.Optional[str] = None,822 name: str | None = None,823 exc: type[TemplateRuntimeError] = UndefinedError,824 ) -> None:825 self._undefined_hint = hint826 self._undefined_obj = obj
236 unmodified lines
modified:src/jinja2/sandbox.py+3 added-5 removed
283 unmodified lines
284 .. versionadded:: 2.6285 """286 return self.unop_table[operator](arg)287288 def getitem(289 self, obj: t.Any, argument: t.Union[str, t.Any]290 ) -> t.Union[t.Any, Undefined]:288 def getitem(self, obj: t.Any, argument: str | t.Any) -> t.Any | Undefined:289 """Subscribe an object from sandboxed code."""290 try:291 return obj[argument]292 except (TypeError, LookupError):
15 unmodified lines
308 return value309 return self.unsafe_undefined(obj, argument)310 return self.undefined(obj=obj, name=argument)311314 def getattr(self, obj: t.Any, attribute: str) -> t.Union[t.Any, Undefined]:312 def getattr(self, obj: t.Any, attribute: str) -> t.Any | Undefined:313 """Subscribe an object from sandboxed code and prefer the314 attribute. The attribute passed *must* be a bytestring.315 """316 try:
21 unmodified lines
338 obj=obj,339 exc=SecurityError,340 )341344 def wrap_str_format(self, value: t.Any) -> t.Optional[t.Callable[..., str]]:342 def wrap_str_format(self, value: t.Any) -> t.Callable[..., str] | None:343 """If the given value is a ``str.format`` or ``str.format_map`` method,344 return a new function than handles sandboxing. This is done at access345 rather than in :meth:`call`, so that calls made without ``call`` are346 also sandboxed.
88 unmodified lines
modified:src/jinja2/utils.py+8 added-8 removed
159 unmodified lines
160 if not silent:161 raise162163164def open_if_exists(filename: str, mode: str = "rb") -> t.Optional[t.IO[t.Any]]:164def open_if_exists(filename: str, mode: str = "rb") -> t.IO[t.Any] | None:165 """Returns a file descriptor for the filename if that file exists,166 otherwise ``None``.167 """168 if not os.path.isfile(filename):
59 unmodified lines
228229230def urlize(231 text: str,232 trim_url_limit: t.Optional[int] = None,233 rel: t.Optional[str] = None,234 target: t.Optional[str] = None,235 extra_schemes: t.Optional[t.Iterable[str]] = None,232 trim_url_limit: int | None = None,233 rel: str | None = None,234 target: str | None = None,235 extra_schemes: t.Iterable[str] | None = None,236) -> str:237 """Convert URLs in text into clickable links.238239 This may not recognize links in some situations. Usually, a more
342 unmodified lines
582 enabled_extensions: t.Collection[str] = ("html", "htm", "xml"),583 disabled_extensions: t.Collection[str] = (),584 default_for_string: bool = True,585 default: bool = False,586) -> t.Callable[[t.Optional[str]], bool]:586) -> t.Callable[[str | None], bool]:587 """Intelligently sets the initial value of autoescaping based on the588 filename of the template. This is the recommended way to configure589 autoescaping if you do not want to write a custom function yourself.590
29 unmodified lines
620 """621 enabled_patterns = tuple(f".{x.lstrip('.').lower()}" for x in enabled_extensions)622 disabled_patterns = tuple(f".{x.lstrip('.').lower()}" for x in disabled_extensions)623624 def autoescape(template_name: t.Optional[str]) -> bool:624 def autoescape(template_name: str | None) -> bool:625 if template_name is None:626 return default_for_string627 template_name = template_name.lower()628 if template_name.endswith(enabled_patterns):
5 unmodified lines
634 return autoescape635636637def htmlsafe_json_dumps(638 obj: t.Any, dumps: t.Optional[t.Callable[..., str]] = None, **kwargs: t.Any638 obj: t.Any, dumps: t.Callable[..., str] | None = None, **kwargs: t.Any639) -> markupsafe.Markup:640 """Serialize an object to a string of JSON with :func:`json.dumps`,641 then replace HTML-unsafe characters with Unicode escapes and mark642 the result safe with :class:`~markupsafe.Markup`.
124 unmodified lines
modified:src/jinja2/visitor.py+1 added-1 removed
23 unmodified lines
24 the `get_visitor` function. If no visitor function exists for a node25 (return value `None`) the `generic_visit` visitor is used instead.26 """2728 def get_visitor(self, node: Node) -> "t.Optional[VisitCallable]":28 def get_visitor(self, node: Node) -> "VisitCallable | None":29 """Return the visitor function for this node or `None` if no visitor30 exists for this node. In that case the generic visit function is31 used instead.32 """
60 unmodified lines
modified:CHANGES.rst+1 added-1 removed
3 unmodified lines
4-------------56Unreleased78- Drop support for Python 3.7 and 3.8.8- Drop support for Python 3.7, 3.8, and 3.9.9- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.10 :pr:`1793`11- Use ``flit_core`` instead of ``setuptools`` as build backend.12
1056 unmodified lines
modified:pyproject.toml+4 added-4 removed
13 unmodified lines
14 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",15 "Topic :: Text Processing :: Markup :: HTML",16 "Typing :: Typed",17]18requires-python = ">=3.9"18requires-python = ">=3.10"19dependencies = [20 "MarkupSafe>=2.0"21]22dynamic = ["version"]
82 unmodified lines
105 ": \\.{3}",106]107108[tool.mypy]109python_version = "3.9"109python_version = "3.10"110files = ["src"]111show_error_codes = true112pretty = true113strict = true114115[tool.pyright]116pythonVersion = "3.9"116pythonVersion = "3.10"117include = ["src"]118typeCheckingMode = "standard"119120[tool.ruff]
25 unmodified lines
146]147148[tool.tox]149env_list = [150 "py3.13", "py3.12", "py3.11", "py3.10", "py3.9",150 "py3.13", "py3.12", "py3.11", "py3.10",151 "pypy3.11",152 "style",153 "typing",154 "docs",
59 unmodified lines
modified:uv.lock+29 added-201 removed
1version = 12revision = 23requires-python = ">=3.9"3requires-python = ">=3.10"4resolution-markers = [5 "python_full_version >= '3.12'",6 "python_full_version == '3.11.*'",7 "python_full_version == '3.10.*'",8 "python_full_version < '3.10'",7 "python_full_version < '3.11'",8]910[[package]]11name = "alabaster"13version = "0.7.16"14source = { registry = "https://pypi.org/simple" }15resolution-markers = [16 "python_full_version < '3.10'",17]18sdist = { url = "https://files.pythonhosted.org/packages/c9/3e/13dd8e5ed9094e734ac430b5d0eb4f2bb001708a8b7856cbf8e084e001ba/alabaster-0.7.16.tar.gz", hash = "sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65", size = 23776, upload-time = "2024-01-10T00:56:10.189Z" }19wheels = [20 { url = "https://files.pythonhosted.org/packages/32/34/d4e1c02d3bee589efb5dfa17f88ea08bdb3e3eac12bc475462aec52ed223/alabaster-0.7.16-py3-none-any.whl", hash = "sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92", size = 13511, upload-time = "2024-01-10T00:56:08.388Z" },21]2223[[package]]24name = "alabaster"12version = "1.0.0"13source = { registry = "https://pypi.org/simple" }27resolution-markers = [28 "python_full_version >= '3.12'",29 "python_full_version == '3.11.*'",30 "python_full_version == '3.10.*'",31]14sdist = { url = "https://files.pythonhosted.org/packages/a6/f8/d9c74d0daf3f742840fd818d69cfae176fa332022fd44e3469487d5a9420/alabaster-1.0.0.tar.gz", hash = "sha256:c00dca57bca26fa62a6d7d0a9fcce65f3e026e9bfe33e9c538fd3fbb2144fd9e", size = 24210, upload-time = "2024-07-26T18:15:03.762Z" }15wheels = [16 { url = "https://files.pythonhosted.org/packages/7e/b3/6b4067be973ae96ba0d615946e314c5ae35f9f993eca561b356540bb0c2b/alabaster-1.0.0-py3-none-any.whl", hash = "sha256:fc6786402dc3fcb2de3cabd5fe455a2db534b371124f1f21de8731783dec828b", size = 13929, upload-time = "2024-07-26T18:15:02.05Z" },17]
65 unmodified lines
83 { url = "https://files.pythonhosted.org/packages/86/c5/28b2d6f799ec0bdecf44dced2ec5ed43e0eb63097b0f58c293583b406582/cffi-1.17.1-cp312-cp312-win32.whl", hash = "sha256:a08d7e755f8ed21095a310a693525137cfe756ce62d066e53f502a83dc550f65", size = 172448, upload-time = "2024-09-04T20:44:26.208Z" },84 { url = "https://files.pythonhosted.org/packages/50/b9/db34c4755a7bd1cb2d1603ac3863f22bcecbd1ba29e5ee841a4bc510b294/cffi-1.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:51392eae71afec0d0c8fb1a53b204dbb3bcabcb3c9b807eedf3e1e6ccf2de903", size = 181976, upload-time = "2024-09-04T20:44:27.578Z" },85 { url = "https://files.pythonhosted.org/packages/bf/ee/f94057fa6426481d663b88637a9a10e859e492c73d0384514a17d78ee205/cffi-1.17.1-cp313-cp313-win32.whl", hash = "sha256:e03eab0a8677fa80d646b5ddece1cbeaf556c313dcfac435ba11f107ba117b5d", size = 172475, upload-time = "2024-09-04T20:44:43.733Z" },86 { url = "https://files.pythonhosted.org/packages/7c/fc/6a8cb64e5f0324877d503c854da15d76c1e50eb722e320b15345c4d0c6de/cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a", size = 182009, upload-time = "2024-09-04T20:44:45.309Z" },105 { url = "https://files.pythonhosted.org/packages/cb/b5/fd9f8b5a84010ca169ee49f4e4ad6f8c05f4e3545b72ee041dbbcb159882/cffi-1.17.1-cp39-cp39-win32.whl", hash = "sha256:e31ae45bc2e29f6b2abd0de1cc3b9d5205aa847cafaecb8af1476a609a2f6eb7", size = 171820, upload-time = "2024-09-04T20:45:18.762Z" },106 { url = "https://files.pythonhosted.org/packages/8c/52/b08750ce0bce45c143e1b5d7357ee8c55341b52bdef4b0f081af1eb248c2/cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662", size = 181290, upload-time = "2024-09-04T20:45:20.226Z" },87]8889[[package]]90name = "cfgv"
70 unmodified lines
161 { url = "https://files.pythonhosted.org/packages/92/08/95b458ce9c740d0645feb0e96cea1f5ec946ea9c580a94adfe0b617f3573/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:289200a18fa698949d2b39c671c2cc7a24d44096784e76614899a7ccf2574b7b", size = 154174, upload-time = "2025-05-02T08:33:13.707Z" },162 { url = "https://files.pythonhosted.org/packages/78/be/8392efc43487ac051eee6c36d5fbd63032d78f7728cb37aebcc98191f1ff/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a476b06fbcf359ad25d34a057b7219281286ae2477cc5ff5e3f70a246971148", size = 149166, upload-time = "2025-05-02T08:33:15.458Z" },163 { url = "https://files.pythonhosted.org/packages/44/96/392abd49b094d30b91d9fbda6a69519e95802250b777841cf3bda8fe136c/charset_normalizer-3.4.2-cp313-cp313-win32.whl", hash = "sha256:aaeeb6a479c7667fbe1099af9617c83aaca22182d6cf8c53966491a0f1b7ffb7", size = 98064, upload-time = "2025-05-02T08:33:17.06Z" },164 { url = "https://files.pythonhosted.org/packages/e9/b0/0200da600134e001d91851ddc797809e2fe0ea72de90e09bec5a2fbdaccb/charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:aa6af9e7d59f9c12b33ae4e9450619cf2488e2bbe9b44030905877f0b2324980", size = 105641, upload-time = "2025-05-02T08:33:18.753Z" },185 { url = "https://files.pythonhosted.org/packages/28/f8/dfb01ff6cc9af38552c69c9027501ff5a5117c4cc18dcd27cb5259fa1888/charset_normalizer-3.4.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:005fa3432484527f9732ebd315da8da8001593e2cf46a3d817669f062c3d9ed4", size = 201671, upload-time = "2025-05-02T08:34:12.696Z" },186 { url = "https://files.pythonhosted.org/packages/32/fb/74e26ee556a9dbfe3bd264289b67be1e6d616329403036f6507bb9f3f29c/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e92fca20c46e9f5e1bb485887d074918b13543b1c2a1185e69bb8d17ab6236a7", size = 144744, upload-time = "2025-05-02T08:34:14.665Z" },187 { url = "https://files.pythonhosted.org/packages/ad/06/8499ee5aa7addc6f6d72e068691826ff093329fe59891e83b092ae4c851c/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:50bf98d5e563b83cc29471fa114366e6806bc06bc7a25fd59641e41445327836", size = 154993, upload-time = "2025-05-02T08:34:17.134Z" },188 { url = "https://files.pythonhosted.org/packages/f1/a2/5e4c187680728219254ef107a6949c60ee0e9a916a5dadb148c7ae82459c/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:721c76e84fe669be19c5791da68232ca2e05ba5185575086e384352e2c309597", size = 147382, upload-time = "2025-05-02T08:34:19.081Z" },189 { url = "https://files.pythonhosted.org/packages/4c/fe/56aca740dda674f0cc1ba1418c4d84534be51f639b5f98f538b332dc9a95/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82d8fd25b7f4675d0c47cf95b594d4e7b158aca33b76aa63d07186e13c0e0ab7", size = 149536, upload-time = "2025-05-02T08:34:21.073Z" },190 { url = "https://files.pythonhosted.org/packages/53/13/db2e7779f892386b589173dd689c1b1e304621c5792046edd8a978cbf9e0/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3daeac64d5b371dea99714f08ffc2c208522ec6b06fbc7866a450dd446f5c0f", size = 151349, upload-time = "2025-05-02T08:34:23.193Z" },191 { url = "https://files.pythonhosted.org/packages/69/35/e52ab9a276186f729bce7a0638585d2982f50402046e4b0faa5d2c3ef2da/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:dccab8d5fa1ef9bfba0590ecf4d46df048d18ffe3eec01eeb73a42e0d9e7a8ba", size = 146365, upload-time = "2025-05-02T08:34:25.187Z" },192 { url = "https://files.pythonhosted.org/packages/a6/d8/af7333f732fc2e7635867d56cb7c349c28c7094910c72267586947561b4b/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:aaf27faa992bfee0264dc1f03f4c75e9fcdda66a519db6b957a3f826e285cf12", size = 154499, upload-time = "2025-05-02T08:34:27.359Z" },193 { url = "https://files.pythonhosted.org/packages/7a/3d/a5b2e48acef264d71e036ff30bcc49e51bde80219bb628ba3e00cf59baac/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:eb30abc20df9ab0814b5a2524f23d75dcf83cde762c161917a2b4b7b55b1e518", size = 157735, upload-time = "2025-05-02T08:34:29.798Z" },194 { url = "https://files.pythonhosted.org/packages/85/d8/23e2c112532a29f3eef374375a8684a4f3b8e784f62b01da931186f43494/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:c72fbbe68c6f32f251bdc08b8611c7b3060612236e960ef848e0a517ddbe76c5", size = 154786, upload-time = "2025-05-02T08:34:31.858Z" },195 { url = "https://files.pythonhosted.org/packages/c7/57/93e0169f08ecc20fe82d12254a200dfaceddc1c12a4077bf454ecc597e33/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:982bb1e8b4ffda883b3d0a521e23abcd6fd17418f6d2c4118d257a10199c0ce3", size = 150203, upload-time = "2025-05-02T08:34:33.88Z" },196 { url = "https://files.pythonhosted.org/packages/2c/9d/9bf2b005138e7e060d7ebdec7503d0ef3240141587651f4b445bdf7286c2/charset_normalizer-3.4.2-cp39-cp39-win32.whl", hash = "sha256:43e0933a0eff183ee85833f341ec567c0980dae57c464d8a508e1b2ceb336471", size = 98436, upload-time = "2025-05-02T08:34:35.907Z" },197 { url = "https://files.pythonhosted.org/packages/6d/24/5849d46cf4311bbf21b424c443b09b459f5b436b1558c04e45dbb7cc478b/charset_normalizer-3.4.2-cp39-cp39-win_amd64.whl", hash = "sha256:d11b54acf878eef558599658b0ffca78138c8c3655cf4f3a4a673c437e67732e", size = 105772, upload-time = "2025-05-02T08:34:37.935Z" },165 { url = "https://files.pythonhosted.org/packages/20/94/c5790835a017658cbfabd07f3bfb549140c3ac458cfc196323996b10095a/charset_normalizer-3.4.2-py3-none-any.whl", hash = "sha256:7f56930ab0abd1c45cd15be65cc741c28b1c9a34876ce8c17a2fa107810c0af0", size = 52626, upload-time = "2025-05-02T08:34:40.053Z" },166]167168[[package]]169name = "click"203version = "8.1.8"204source = { registry = "https://pypi.org/simple" }205resolution-markers = [206 "python_full_version < '3.10'",207]208dependencies = [209 { name = "colorama", marker = "python_full_version < '3.10' and sys_platform == 'win32'" },210]211sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593, upload-time = "2024-12-21T18:38:44.339Z" }212wheels = [213 { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188, upload-time = "2024-12-21T18:38:41.666Z" },214]215216[[package]]217name = "click"170version = "8.2.1"171source = { registry = "https://pypi.org/simple" }220resolution-markers = [221 "python_full_version >= '3.12'",222 "python_full_version == '3.11.*'",223 "python_full_version == '3.10.*'",224]172dependencies = [226 { name = "colorama", marker = "python_full_version >= '3.10' and sys_platform == 'win32'" },173 { name = "colorama", marker = "sys_platform == 'win32'" },174]175sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342, upload-time = "2025-05-20T23:19:49.832Z" }176wheels = [177 { url = "https://files.pythonhosted.org/packages/85/32/10bb5764d90a8eee674e9dc6f4db6a0ab47c8c4d0d83c27f7c39ac415a4d/click-8.2.1-py3-none-any.whl", hash = "sha256:61a3265b914e850b85317d0b3109c7f8cd35a670f963866005d6ef1d5175a12b", size = 102215, upload-time = "2025-05-20T23:19:47.796Z" },
51 unmodified lines
229name = "gha-update"230version = "0.1.0"231source = { registry = "https://pypi.org/simple" }232dependencies = [286 { name = "click", version = "8.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },233 { name = "click", marker = "python_full_version >= '3.12'" },234 { name = "httpx", marker = "python_full_version >= '3.12'" },235]236sdist = { url = "https://files.pythonhosted.org/packages/d5/ac/f1b6699a529bd298a777199861a8232590bb612eac92e15bf1033134f123/gha_update-0.1.0.tar.gz", hash = "sha256:8c0f55ed7bdc11fb061d67984814fd642bd3a1872028e34c15c913cd59202d53", size = 3345, upload-time = "2024-08-23T20:58:42.478Z" }237wheels = [
64 unmodified lines
302 { url = "https://files.pythonhosted.org/packages/ff/62/85c4c919272577931d407be5ba5d71c20f0b616d31a0befe0ae45bb79abd/imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b", size = 8769, upload-time = "2022-07-01T12:21:02.467Z" },303]304305[[package]]359name = "importlib-metadata"360version = "8.7.0"361source = { registry = "https://pypi.org/simple" }362dependencies = [363 { name = "zipp", marker = "python_full_version < '3.10'" },364]365sdist = { url = "https://files.pythonhosted.org/packages/76/66/650a33bd90f786193e4de4b3ad86ea60b53c89b669a5c7be931fac31cdb0/importlib_metadata-8.7.0.tar.gz", hash = "sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000", size = 56641, upload-time = "2025-04-27T15:29:01.736Z" }366wheels = [367 { url = "https://files.pythonhosted.org/packages/20/b0/36bd937216ec521246249be3bf9855081de4c5e06a0c9b4219dbeda50373/importlib_metadata-8.7.0-py3-none-any.whl", hash = "sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd", size = 27656, upload-time = "2025-04-27T15:29:00.214Z" },368]369370[[package]]306name = "iniconfig"307version = "2.1.0"308source = { registry = "https://pypi.org/simple" }309sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793, upload-time = "2025-03-19T20:09:59.721Z" }
20 unmodified lines
330 { name = "tox-uv" },331]332docs = [333 { name = "pallets-sphinx-themes" },399 { name = "sphinx", version = "7.4.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },400 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" },334 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },335 { name = "sphinx", version = "8.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },336 { name = "sphinxcontrib-log-cabinet" },337]338docs-auto = [
107 unmodified lines
446 { url = "https://files.pythonhosted.org/packages/e6/32/7621a4382488aa283cc05e8984a9c219abad3bca087be9ec77e89939ded9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a", size = 24114, upload-time = "2024-10-18T15:21:39.799Z" },447 { url = "https://files.pythonhosted.org/packages/0d/80/0985960e4b89922cb5a0bac0ed39c5b96cbc1a536a99f30e8c220a996ed9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9", size = 24098, upload-time = "2024-10-18T15:21:40.813Z" },448 { url = "https://files.pythonhosted.org/packages/82/78/fedb03c7d5380df2427038ec8d973587e90561b2d90cd472ce9254cf348b/MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6", size = 15208, upload-time = "2024-10-18T15:21:41.814Z" },449 { url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739, upload-time = "2024-10-18T15:21:42.784Z" },516 { url = "https://files.pythonhosted.org/packages/a7/ea/9b1530c3fdeeca613faeb0fb5cbcf2389d816072fab72a71b45749ef6062/MarkupSafe-3.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:eaa0a10b7f72326f1372a713e73c3f739b524b3af41feb43e4921cb529f5929a", size = 14344, upload-time = "2024-10-18T15:21:43.721Z" },517 { url = "https://files.pythonhosted.org/packages/4b/c2/fbdbfe48848e7112ab05e627e718e854d20192b674952d9042ebd8c9e5de/MarkupSafe-3.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:48032821bbdf20f5799ff537c7ac3d1fba0ba032cfc06194faffa8cda8b560ff", size = 12389, upload-time = "2024-10-18T15:21:44.666Z" },518 { url = "https://files.pythonhosted.org/packages/f0/25/7a7c6e4dbd4f867d95d94ca15449e91e52856f6ed1905d58ef1de5e211d0/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a9d3f5f0901fdec14d8d2f66ef7d035f2157240a433441719ac9a3fba440b13", size = 21607, upload-time = "2024-10-18T15:21:45.452Z" },519 { url = "https://files.pythonhosted.org/packages/53/8f/f339c98a178f3c1e545622206b40986a4c3307fe39f70ccd3d9df9a9e425/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88b49a3b9ff31e19998750c38e030fc7bb937398b1f78cfa599aaef92d693144", size = 20728, upload-time = "2024-10-18T15:21:46.295Z" },520 { url = "https://files.pythonhosted.org/packages/1a/03/8496a1a78308456dbd50b23a385c69b41f2e9661c67ea1329849a598a8f9/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cfad01eed2c2e0c01fd0ecd2ef42c492f7f93902e39a42fc9ee1692961443a29", size = 20826, upload-time = "2024-10-18T15:21:47.134Z" },521 { url = "https://files.pythonhosted.org/packages/e6/cf/0a490a4bd363048c3022f2f475c8c05582179bb179defcee4766fb3dcc18/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1225beacc926f536dc82e45f8a4d68502949dc67eea90eab715dea3a21c1b5f0", size = 21843, upload-time = "2024-10-18T15:21:48.334Z" },522 { url = "https://files.pythonhosted.org/packages/19/a3/34187a78613920dfd3cdf68ef6ce5e99c4f3417f035694074beb8848cd77/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:3169b1eefae027567d1ce6ee7cae382c57fe26e82775f460f0b2778beaad66c0", size = 21219, upload-time = "2024-10-18T15:21:49.587Z" },523 { url = "https://files.pythonhosted.org/packages/17/d8/5811082f85bb88410ad7e452263af048d685669bbbfb7b595e8689152498/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:eb7972a85c54febfb25b5c4b4f3af4dcc731994c7da0d8a0b4a6eb0640e1d178", size = 20946, upload-time = "2024-10-18T15:21:50.441Z" },524 { url = "https://files.pythonhosted.org/packages/7c/31/bd635fb5989440d9365c5e3c47556cfea121c7803f5034ac843e8f37c2f2/MarkupSafe-3.0.2-cp39-cp39-win32.whl", hash = "sha256:8c4e8c3ce11e1f92f6536ff07154f9d49677ebaaafc32db9db4620bc11ed480f", size = 15063, upload-time = "2024-10-18T15:21:51.385Z" },525 { url = "https://files.pythonhosted.org/packages/b3/73/085399401383ce949f727afec55ec3abd76648d04b9f22e1c0e99cb4bec3/MarkupSafe-3.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:6e296a513ca3d94054c2c881cc913116e90fd030ad1c656b3869762b754f5f8a", size = 15506, upload-time = "2024-10-18T15:21:52.974Z" },450]451452[[package]]453name = "mypy"
29 unmodified lines
483 { url = "https://files.pythonhosted.org/packages/a6/ac/395808a92e10cfdac8003c3de9a2ab6dc7cde6c0d2a4df3df1b815ffd067/mypy-1.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98b7b9b9aedb65fe628c62a6dc57f6d5088ef2dfca37903a7d9ee374d03acca5", size = 11438443, upload-time = "2025-02-05T03:49:25.514Z" },484 { url = "https://files.pythonhosted.org/packages/d2/8b/801aa06445d2de3895f59e476f38f3f8d610ef5d6908245f07d002676cbf/mypy-1.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43a7682e24b4f576d93072216bf56eeff70d9140241f9edec0c104d0c515036", size = 12402541, upload-time = "2025-02-05T03:49:57.623Z" },485 { url = "https://files.pythonhosted.org/packages/c7/67/5a4268782eb77344cc613a4cf23540928e41f018a9a1ec4c6882baf20ab8/mypy-1.15.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:baefc32840a9f00babd83251560e0ae1573e2f9d1b067719479bfb0e987c6357", size = 12494348, upload-time = "2025-02-05T03:48:52.361Z" },486 { url = "https://files.pythonhosted.org/packages/83/3e/57bb447f7bbbfaabf1712d96f9df142624a386d98fb026a761532526057e/mypy-1.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:b9378e2c00146c44793c98b8d5a61039a048e31f429fb0eb546d93f4b000bedf", size = 9373648, upload-time = "2025-02-05T03:49:11.395Z" },563 { url = "https://files.pythonhosted.org/packages/5a/fa/79cf41a55b682794abe71372151dbbf856e3008f6767057229e6649d294a/mypy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e601a7fa172c2131bff456bb3ee08a88360760d0d2f8cbd7a75a65497e2df078", size = 10737129, upload-time = "2025-02-05T03:50:24.509Z" },564 { url = "https://files.pythonhosted.org/packages/d3/33/dd8feb2597d648de29e3da0a8bf4e1afbda472964d2a4a0052203a6f3594/mypy-1.15.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:712e962a6357634fef20412699a3655c610110e01cdaa6180acec7fc9f8513ba", size = 9856335, upload-time = "2025-02-05T03:49:36.398Z" },565 { url = "https://files.pythonhosted.org/packages/e4/b5/74508959c1b06b96674b364ffeb7ae5802646b32929b7701fc6b18447592/mypy-1.15.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f95579473af29ab73a10bada2f9722856792a36ec5af5399b653aa28360290a5", size = 11611935, upload-time = "2025-02-05T03:49:14.154Z" },566 { url = "https://files.pythonhosted.org/packages/6c/53/da61b9d9973efcd6507183fdad96606996191657fe79701b2c818714d573/mypy-1.15.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f8722560a14cde92fdb1e31597760dc35f9f5524cce17836c0d22841830fd5b", size = 12365827, upload-time = "2025-02-05T03:48:59.458Z" },567 { url = "https://files.pythonhosted.org/packages/c1/72/965bd9ee89540c79a25778cc080c7e6ef40aa1eeac4d52cec7eae6eb5228/mypy-1.15.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:1fbb8da62dc352133d7d7ca90ed2fb0e9d42bb1a32724c287d3c76c58cbaa9c2", size = 12541924, upload-time = "2025-02-05T03:50:03.12Z" },568 { url = "https://files.pythonhosted.org/packages/46/d0/f41645c2eb263e6c77ada7d76f894c580c9ddb20d77f0c24d34273a4dab2/mypy-1.15.0-cp39-cp39-win_amd64.whl", hash = "sha256:d10d994b41fb3497719bbf866f227b3489048ea4bbbb5015357db306249f7980", size = 9271176, upload-time = "2025-02-05T03:50:10.86Z" },487 { url = "https://files.pythonhosted.org/packages/09/4e/a7d65c7322c510de2c409ff3828b03354a7c43f5a8ed458a7a131b41c7b9/mypy-1.15.0-py3-none-any.whl", hash = "sha256:5469affef548bd1895d86d3bf10ce2b44e33d86923c29e4d675b3e323437ea3e", size = 2221777, upload-time = "2025-02-05T03:50:08.348Z" },488]489490[[package]]
40 unmodified lines
531version = "2.3.0"532source = { registry = "https://pypi.org/simple" }533dependencies = [534 { name = "packaging" },617 { name = "sphinx", version = "7.4.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },618 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" },535 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },536 { name = "sphinx", version = "8.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },537 { name = "sphinx-notfound-page" },538]539sdist = { url = "https://files.pythonhosted.org/packages/3b/08/c57dd89e45dbc976930200a2cb7826ed76f3c9791454a9fcd1cde3f17177/pallets_sphinx_themes-2.3.0.tar.gz", hash = "sha256:6293ced11a1d5d3de7268af1acd60428732b5a9e6051a47a596c6d9a083e60d9", size = 21029, upload-time = "2024-10-24T18:52:38.574Z" }
162 unmodified lines
702 { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660, upload-time = "2024-08-06T20:32:54.708Z" },703 { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597, upload-time = "2024-08-06T20:32:56.985Z" },704 { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527, upload-time = "2024-08-06T20:33:03.001Z" },705 { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446, upload-time = "2024-08-06T20:33:04.33Z" },789 { url = "https://files.pythonhosted.org/packages/65/d8/b7a1db13636d7fb7d4ff431593c510c8b8fca920ade06ca8ef20015493c5/PyYAML-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:688ba32a1cffef67fd2e9398a2efebaea461578b0923624778664cc1c914db5d", size = 184777, upload-time = "2024-08-06T20:33:25.896Z" },790 { url = "https://files.pythonhosted.org/packages/0a/02/6ec546cd45143fdf9840b2c6be8d875116a64076218b61d68e12548e5839/PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a8786accb172bd8afb8be14490a16625cbc387036876ab6ba70912730faf8e1f", size = 172318, upload-time = "2024-08-06T20:33:27.212Z" },791 { url = "https://files.pythonhosted.org/packages/0e/9a/8cc68be846c972bda34f6c2a93abb644fb2476f4dcc924d52175786932c9/PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8e03406cac8513435335dbab54c0d385e4a49e4945d2909a581c83647ca0290", size = 720891, upload-time = "2024-08-06T20:33:28.974Z" },792 { url = "https://files.pythonhosted.org/packages/e9/6c/6e1b7f40181bc4805e2e07f4abc10a88ce4648e7e95ff1abe4ae4014a9b2/PyYAML-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12", size = 722614, upload-time = "2024-08-06T20:33:34.157Z" },793 { url = "https://files.pythonhosted.org/packages/3d/32/e7bd8535d22ea2874cef6a81021ba019474ace0d13a4819c2a4bce79bd6a/PyYAML-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b1fdb9dc17f5a7677423d508ab4f243a726dea51fa5e70992e59a7411c89d19", size = 737360, upload-time = "2024-08-06T20:33:35.84Z" },794 { url = "https://files.pythonhosted.org/packages/d7/12/7322c1e30b9be969670b672573d45479edef72c9a0deac3bb2868f5d7469/PyYAML-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0b69e4ce7a131fe56b7e4d770c67429700908fc0752af059838b1cfb41960e4e", size = 699006, upload-time = "2024-08-06T20:33:37.501Z" },795 { url = "https://files.pythonhosted.org/packages/82/72/04fcad41ca56491995076630c3ec1e834be241664c0c09a64c9a2589b507/PyYAML-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a9f8c2e67970f13b16084e04f134610fd1d374bf477b17ec1599185cf611d725", size = 723577, upload-time = "2024-08-06T20:33:39.389Z" },796 { url = "https://files.pythonhosted.org/packages/ed/5e/46168b1f2757f1fcd442bc3029cd8767d88a98c9c05770d8b420948743bb/PyYAML-6.0.2-cp39-cp39-win32.whl", hash = "sha256:6395c297d42274772abc367baaa79683958044e5d3835486c16da75d2a694631", size = 144593, upload-time = "2024-08-06T20:33:46.63Z" },797 { url = "https://files.pythonhosted.org/packages/19/87/5124b1c1f2412bb95c59ec481eaf936cd32f0fe2a7b16b97b81c4c017a6a/PyYAML-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:39693e1f8320ae4f43943590b49779ffb98acb81f788220ea932a6b6c51004d8", size = 162312, upload-time = "2024-08-06T20:33:49.073Z" },706]707708[[package]]709name = "requests"
72 unmodified lines
782]783784[[package]]785name = "sphinx"878version = "7.4.7"879source = { registry = "https://pypi.org/simple" }880resolution-markers = [881 "python_full_version < '3.10'",882]883dependencies = [884 { name = "alabaster", version = "0.7.16", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },885 { name = "babel", marker = "python_full_version < '3.10'" },886 { name = "colorama", marker = "python_full_version < '3.10' and sys_platform == 'win32'" },887 { name = "docutils", marker = "python_full_version < '3.10'" },888 { name = "imagesize", marker = "python_full_version < '3.10'" },889 { name = "importlib-metadata", marker = "python_full_version < '3.10'" },890 { name = "jinja2", marker = "python_full_version < '3.10'" },891 { name = "packaging", marker = "python_full_version < '3.10'" },892 { name = "pygments", marker = "python_full_version < '3.10'" },893 { name = "requests", marker = "python_full_version < '3.10'" },894 { name = "snowballstemmer", marker = "python_full_version < '3.10'" },895 { name = "sphinxcontrib-applehelp", marker = "python_full_version < '3.10'" },896 { name = "sphinxcontrib-devhelp", marker = "python_full_version < '3.10'" },897 { name = "sphinxcontrib-htmlhelp", marker = "python_full_version < '3.10'" },898 { name = "sphinxcontrib-jsmath", marker = "python_full_version < '3.10'" },899 { name = "sphinxcontrib-qthelp", marker = "python_full_version < '3.10'" },900 { name = "sphinxcontrib-serializinghtml", marker = "python_full_version < '3.10'" },901 { name = "tomli", marker = "python_full_version < '3.10'" },902]903sdist = { url = "https://files.pythonhosted.org/packages/5b/be/50e50cb4f2eff47df05673d361095cafd95521d2a22521b920c67a372dcb/sphinx-7.4.7.tar.gz", hash = "sha256:242f92a7ea7e6c5b406fdc2615413890ba9f699114a9c09192d7dfead2ee9cfe", size = 8067911, upload-time = "2024-07-20T14:46:56.059Z" }904wheels = [905 { url = "https://files.pythonhosted.org/packages/0d/ef/153f6803c5d5f8917dbb7f7fcf6d34a871ede3296fa89c2c703f5f8a6c8e/sphinx-7.4.7-py3-none-any.whl", hash = "sha256:c2419e2135d11f1951cd994d6eb18a1835bd8fdd8429f9ca375dc1f3281bd239", size = 3401624, upload-time = "2024-07-20T14:46:52.142Z" },906]907908[[package]]909name = "sphinx"786version = "8.1.3"787source = { registry = "https://pypi.org/simple" }788resolution-markers = [913 "python_full_version == '3.10.*'",789 "python_full_version < '3.11'",790]791dependencies = [916 { name = "alabaster", version = "1.0.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" },917 { name = "babel", marker = "python_full_version == '3.10.*'" },918 { name = "colorama", marker = "python_full_version == '3.10.*' and sys_platform == 'win32'" },919 { name = "docutils", marker = "python_full_version == '3.10.*'" },920 { name = "imagesize", marker = "python_full_version == '3.10.*'" },921 { name = "jinja2", marker = "python_full_version == '3.10.*'" },922 { name = "packaging", marker = "python_full_version == '3.10.*'" },923 { name = "pygments", marker = "python_full_version == '3.10.*'" },924 { name = "requests", marker = "python_full_version == '3.10.*'" },925 { name = "snowballstemmer", marker = "python_full_version == '3.10.*'" },926 { name = "sphinxcontrib-applehelp", marker = "python_full_version == '3.10.*'" },927 { name = "sphinxcontrib-devhelp", marker = "python_full_version == '3.10.*'" },928 { name = "sphinxcontrib-htmlhelp", marker = "python_full_version == '3.10.*'" },929 { name = "sphinxcontrib-jsmath", marker = "python_full_version == '3.10.*'" },930 { name = "sphinxcontrib-qthelp", marker = "python_full_version == '3.10.*'" },931 { name = "sphinxcontrib-serializinghtml", marker = "python_full_version == '3.10.*'" },932 { name = "tomli", marker = "python_full_version == '3.10.*'" },792 { name = "alabaster", marker = "python_full_version < '3.11'" },793 { name = "babel", marker = "python_full_version < '3.11'" },794 { name = "colorama", marker = "python_full_version < '3.11' and sys_platform == 'win32'" },795 { name = "docutils", marker = "python_full_version < '3.11'" },796 { name = "imagesize", marker = "python_full_version < '3.11'" },797 { name = "jinja2", marker = "python_full_version < '3.11'" },798 { name = "packaging", marker = "python_full_version < '3.11'" },799 { name = "pygments", marker = "python_full_version < '3.11'" },800 { name = "requests", marker = "python_full_version < '3.11'" },801 { name = "snowballstemmer", marker = "python_full_version < '3.11'" },802 { name = "sphinxcontrib-applehelp", marker = "python_full_version < '3.11'" },803 { name = "sphinxcontrib-devhelp", marker = "python_full_version < '3.11'" },804 { name = "sphinxcontrib-htmlhelp", marker = "python_full_version < '3.11'" },805 { name = "sphinxcontrib-jsmath", marker = "python_full_version < '3.11'" },806 { name = "sphinxcontrib-qthelp", marker = "python_full_version < '3.11'" },807 { name = "sphinxcontrib-serializinghtml", marker = "python_full_version < '3.11'" },808 { name = "tomli", marker = "python_full_version < '3.11'" },809]810sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/be0b61178fe2cdcb67e2a92fc9ebb488e3c51c4f74a36a7824c0adf23425/sphinx-8.1.3.tar.gz", hash = "sha256:43c1911eecb0d3e161ad78611bc905d1ad0e523e4ddc202a58a821773dc4c927", size = 8184611, upload-time = "2024-10-13T20:27:13.93Z" }811wheels = [812 { url = "https://files.pythonhosted.org/packages/26/60/1ddff83a56d33aaf6f10ec8ce84b4c007d9368b21008876fceda7e7381ef/sphinx-8.1.3-py3-none-any.whl", hash = "sha256:09719015511837b76bf6e03e42eb7595ac8c2e41eeb9c29c5b755c6b677992a2", size = 3487125, upload-time = "2024-10-13T20:27:10.448Z" },
7 unmodified lines
820 "python_full_version >= '3.12'",821 "python_full_version == '3.11.*'",822]823dependencies = [948 { name = "alabaster", version = "1.0.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },824 { name = "alabaster", marker = "python_full_version >= '3.11'" },825 { name = "babel", marker = "python_full_version >= '3.11'" },826 { name = "colorama", marker = "python_full_version >= '3.11' and sys_platform == 'win32'" },827 { name = "docutils", marker = "python_full_version >= '3.11'" },828 { name = "imagesize", marker = "python_full_version >= '3.11'" },
20 unmodified lines
849version = "2024.10.3"850source = { registry = "https://pypi.org/simple" }851dependencies = [852 { name = "colorama" },977 { name = "sphinx", version = "7.4.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },978 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" },853 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },854 { name = "sphinx", version = "8.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },855 { name = "starlette" },856 { name = "uvicorn" },857 { name = "watchfiles" },
8 unmodified lines
866name = "sphinx-notfound-page"867version = "1.1.0"868source = { registry = "https://pypi.org/simple" }869dependencies = [995 { name = "sphinx", version = "7.4.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },996 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" },870 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },871 { name = "sphinx", version = "8.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },872]873sdist = { url = "https://files.pythonhosted.org/packages/6a/b2/67603444a8ee97b4a8ea71b0a9d6bab1727ed65e362c87e02f818ee57b8a/sphinx_notfound_page-1.1.0.tar.gz", hash = "sha256:913e1754370bb3db201d9300d458a8b8b5fb22e9246a816643a819a9ea2b8067", size = 7392, upload-time = "2025-01-28T18:45:02.871Z" }874wheels = [
40 unmodified lines
915name = "sphinxcontrib-log-cabinet"916version = "1.0.1"917source = { registry = "https://pypi.org/simple" }918dependencies = [1045 { name = "sphinx", version = "7.4.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },1046 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.10.*'" },919 { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },920 { name = "sphinx", version = "8.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },921]922sdist = { url = "https://files.pythonhosted.org/packages/75/26/0687391e10c605a4d0c7ebe118c57c51ecc687128bcdae5803d9b96def81/sphinxcontrib-log-cabinet-1.0.1.tar.gz", hash = "sha256:103b2e62df4e57abb943bea05ee9c2beb7da922222c8b77314ffd6ab9901c558", size = 4072, upload-time = "2019-07-05T23:22:34.596Z" }923wheels = [
23 unmodified lines
947version = "0.46.2"948source = { registry = "https://pypi.org/simple" }949dependencies = [950 { name = "anyio" },1078 { name = "typing-extensions", marker = "python_full_version < '3.10'" },951]952sdist = { url = "https://files.pythonhosted.org/packages/ce/20/08dfcd9c983f6a6f4a1000d934b9e6d626cff8d2eeb77a89a68eef20a2b7/starlette-0.46.2.tar.gz", hash = "sha256:7f7361f34eed179294600af672f565727419830b54b7b084efe44bb82d2fccd5", size = 2580846, upload-time = "2025-04-13T13:56:17.942Z" }953wheels = [954 { url = "https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl", hash = "sha256:595633ce89f8ffa71a015caed34a5b2dc1c0cdb3f0f1fbd1e69339cf2abeec35", size = 72037, upload-time = "2025-04-13T13:56:16.21Z" },
66 unmodified lines
1021source = { registry = "https://pypi.org/simple" }1022dependencies = [1023 { name = "packaging" },1024 { name = "tox" },1153 { name = "typing-extensions", marker = "python_full_version < '3.10'" },1025 { name = "uv" },1026]1027sdist = { url = "https://files.pythonhosted.org/packages/7e/da/37790b4a176f05b0ec7a699f54979078fc726f743640aa5c10c551c27edb/tox_uv-1.26.0.tar.gz", hash = "sha256:5045880c467eed58a98f7eaa7fe286b7ef688e2c56f2123d53e275011495c381", size = 21523, upload-time = "2025-05-27T14:51:42.702Z" }1028wheels = [
65 unmodified lines
1094name = "uvicorn"1095version = "0.34.2"1096source = { registry = "https://pypi.org/simple" }1097dependencies = [1227 { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },1228 { name = "click", version = "8.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" },1098 { name = "click" },1099 { name = "h11" },1100 { name = "typing-extensions", marker = "python_full_version < '3.11'" },1101]1102sdist = { url = "https://files.pythonhosted.org/packages/a6/ae/9bbb19b9e1c450cf9ecaef06463e40234d98d95bf572fab11b4f19ae5ded/uvicorn-0.34.2.tar.gz", hash = "sha256:0e929828f6186353a80b58ea719861d2629d766293b6d19baf086ba31d4f3328", size = 76815, upload-time = "2025-04-19T06:02:50.101Z" }
73 unmodified lines
1176 { url = "https://files.pythonhosted.org/packages/61/d9/f75d6840059320df5adecd2c687fbc18960a7f97b55c300d20f207d48aef/watchfiles-1.0.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:13bb21f8ba3248386337c9fa51c528868e6c34a707f729ab041c846d52a0c69a", size = 629693, upload-time = "2025-04-08T10:35:48.161Z" },1177 { url = "https://files.pythonhosted.org/packages/fc/17/180ca383f5061b61406477218c55d66ec118e6c0c51f02d8142895fcf0a9/watchfiles-1.0.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:839ebd0df4a18c5b3c1b890145b5a3f5f64063c2a0d02b13c76d78fe5de34936", size = 624677, upload-time = "2025-04-08T10:35:49.65Z" },1178 { url = "https://files.pythonhosted.org/packages/bf/15/714d6ef307f803f236d69ee9d421763707899d6298d9f3183e55e366d9af/watchfiles-1.0.5-cp313-cp313-win32.whl", hash = "sha256:4a8ec1e4e16e2d5bafc9ba82f7aaecfeec990ca7cd27e84fb6f191804ed2fcfc", size = 277804, upload-time = "2025-04-08T10:35:51.093Z" },1179 { url = "https://files.pythonhosted.org/packages/a8/b4/c57b99518fadf431f3ef47a610839e46e5f8abf9814f969859d1c65c02c7/watchfiles-1.0.5-cp313-cp313-win_amd64.whl", hash = "sha256:f436601594f15bf406518af922a89dcaab416568edb6f65c4e5bbbad1ea45c11", size = 291087, upload-time = "2025-04-08T10:35:52.458Z" },1310 { url = "https://files.pythonhosted.org/packages/c5/95/94f3dd15557f5553261e407551c5e4d340e50161c55aa30812c79da6cb04/watchfiles-1.0.5-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:2cfb371be97d4db374cba381b9f911dd35bb5f4c58faa7b8b7106c8853e5d225", size = 405686, upload-time = "2025-04-08T10:35:53.86Z" },1311 { url = "https://files.pythonhosted.org/packages/f4/aa/b99e968153f8b70159ecca7b3daf46a6f46d97190bdaa3a449ad31b921d7/watchfiles-1.0.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a3904d88955fda461ea2531fcf6ef73584ca921415d5cfa44457a225f4a42bc1", size = 396047, upload-time = "2025-04-08T10:35:55.232Z" },1312 { url = "https://files.pythonhosted.org/packages/23/cb/90d3d760ad4bc7290e313fb9236c7d60598627a25a5a72764e48d9652064/watchfiles-1.0.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b7a21715fb12274a71d335cff6c71fe7f676b293d322722fe708a9ec81d91f5", size = 456081, upload-time = "2025-04-08T10:35:57.102Z" },1313 { url = "https://files.pythonhosted.org/packages/3e/65/79c6cebe5bcb695cdac145946ad5a09b9f66762549e82fb2d064ea960c95/watchfiles-1.0.5-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:dfd6ae1c385ab481766b3c61c44aca2b3cd775f6f7c0fa93d979ddec853d29d5", size = 459838, upload-time = "2025-04-08T10:35:58.867Z" },1314 { url = "https://files.pythonhosted.org/packages/3f/84/699f52632cdaa777f6df7f6f1cc02a23a75b41071b7e6765b9a412495f61/watchfiles-1.0.5-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b659576b950865fdad31fa491d31d37cf78b27113a7671d39f919828587b429b", size = 489753, upload-time = "2025-04-08T10:36:00.237Z" },1315 { url = "https://files.pythonhosted.org/packages/25/68/3241f82ad414fd969de6bf3a93805682e5eb589aeab510322f2aa14462f8/watchfiles-1.0.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1909e0a9cd95251b15bff4261de5dd7550885bd172e3536824bf1cf6b121e200", size = 525015, upload-time = "2025-04-08T10:36:02.159Z" },1316 { url = "https://files.pythonhosted.org/packages/85/c4/30d879e252f52b01660f545c193e6b81c48aac2e0eeec71263af3add905b/watchfiles-1.0.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:832ccc221927c860e7286c55c9b6ebcc0265d5e072f49c7f6456c7798d2b39aa", size = 503816, upload-time = "2025-04-08T10:36:03.869Z" },1317 { url = "https://files.pythonhosted.org/packages/6b/7d/fa34750f6f4b1a70d96fa6b685fe2948d01e3936328ea528f182943eb373/watchfiles-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85fbb6102b3296926d0c62cfc9347f6237fb9400aecd0ba6bbda94cae15f2b3b", size = 456137, upload-time = "2025-04-08T10:36:05.226Z" },1318 { url = "https://files.pythonhosted.org/packages/8f/0c/a1569709aaeccb1dd74b0dd304d0de29e3ea1fdf11e08c78f489628f9ebb/watchfiles-1.0.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:15ac96dd567ad6c71c71f7b2c658cb22b7734901546cd50a475128ab557593ca", size = 632673, upload-time = "2025-04-08T10:36:06.752Z" },1319 { url = "https://files.pythonhosted.org/packages/90/b6/645eaaca11f3ac625cf3b6e008e543acf0bf2581f68b5e205a13b05618b6/watchfiles-1.0.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4b6227351e11c57ae997d222e13f5b6f1f0700d84b8c52304e8675d33a808382", size = 626659, upload-time = "2025-04-08T10:36:08.18Z" },1320 { url = "https://files.pythonhosted.org/packages/3a/c4/e741d9b92b0a2c74b976ff78bbc9a1276b4d904c590878e8fe0ec9fecca5/watchfiles-1.0.5-cp39-cp39-win32.whl", hash = "sha256:974866e0db748ebf1eccab17862bc0f0303807ed9cda465d1324625b81293a18", size = 278471, upload-time = "2025-04-08T10:36:10.546Z" },1321 { url = "https://files.pythonhosted.org/packages/50/1b/36b0cb6add99105f78931994b30bc1dd24118c0e659ab6a3ffe0dd8734d4/watchfiles-1.0.5-cp39-cp39-win_amd64.whl", hash = "sha256:9848b21ae152fe79c10dd0197304ada8f7b586d3ebc3f27f43c506e5a52a863c", size = 292027, upload-time = "2025-04-08T10:36:11.901Z" },1180 { url = "https://files.pythonhosted.org/packages/1a/03/81f9fcc3963b3fc415cd4b0b2b39ee8cc136c42fb10a36acf38745e9d283/watchfiles-1.0.5-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:f59b870db1f1ae5a9ac28245707d955c8721dd6565e7f411024fa374b5362d1d", size = 405947, upload-time = "2025-04-08T10:36:13.721Z" },1181 { url = "https://files.pythonhosted.org/packages/54/97/8c4213a852feb64807ec1d380f42d4fc8bfaef896bdbd94318f8fd7f3e4e/watchfiles-1.0.5-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:9475b0093767e1475095f2aeb1d219fb9664081d403d1dff81342df8cd707034", size = 397276, upload-time = "2025-04-08T10:36:15.131Z" },1182 { url = "https://files.pythonhosted.org/packages/78/12/d4464d19860cb9672efa45eec1b08f8472c478ed67dcd30647c51ada7aef/watchfiles-1.0.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc533aa50664ebd6c628b2f30591956519462f5d27f951ed03d6c82b2dfd9965", size = 455550, upload-time = "2025-04-08T10:36:16.635Z" },1183 { url = "https://files.pythonhosted.org/packages/90/fb/b07bcdf1034d8edeaef4c22f3e9e3157d37c5071b5f9492ffdfa4ad4bed7/watchfiles-1.0.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fed1cd825158dcaae36acce7b2db33dcbfd12b30c34317a88b8ed80f0541cc57", size = 455542, upload-time = "2025-04-08T10:36:18.655Z" },1326 { url = "https://files.pythonhosted.org/packages/5b/84/7b69282c0df2bf2dff4e50be2c54669cddf219a5a5fb077891c00c00e5c8/watchfiles-1.0.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:554389562c29c2c182e3908b149095051f81d28c2fec79ad6c8997d7d63e0009", size = 405783, upload-time = "2025-04-08T10:36:20.553Z" },1327 { url = "https://files.pythonhosted.org/packages/dd/ae/03fca0545d99b7ea21df49bead7b51e7dca9ce3b45bb6d34530aa18c16a2/watchfiles-1.0.5-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:a74add8d7727e6404d5dc4dcd7fac65d4d82f95928bbee0cf5414c900e86773e", size = 397133, upload-time = "2025-04-08T10:36:22.439Z" },1328 { url = "https://files.pythonhosted.org/packages/1a/07/c2b6390003e933b2e187a3f7070c00bd87da8a58d6f2393e039b06a88c2e/watchfiles-1.0.5-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb1489f25b051a89fae574505cc26360c8e95e227a9500182a7fe0afcc500ce0", size = 456198, upload-time = "2025-04-08T10:36:23.884Z" },1329 { url = "https://files.pythonhosted.org/packages/46/d3/ecc62cbd7054f0812f3a7ca7c1c9f7ba99ba45efcfc8297a9fcd2c87b31c/watchfiles-1.0.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0901429650652d3f0da90bad42bdafc1f9143ff3605633c455c999a2d786cac", size = 456511, upload-time = "2025-04-08T10:36:25.42Z" },1184]11851186[[package]]1187name = "websockets"
44 unmodified lines
1232 { url = "https://files.pythonhosted.org/packages/e0/17/de15b6158680c7623c6ef0db361da965ab25d813ae54fcfeae2e5b9ef910/websockets-15.0.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:756c56e867a90fb00177d530dca4b097dd753cde348448a1012ed6c5131f8b7d", size = 182217, upload-time = "2025-03-05T20:02:50.14Z" },1233 { url = "https://files.pythonhosted.org/packages/33/2b/1f168cb6041853eef0362fb9554c3824367c5560cbdaad89ac40f8c2edfc/websockets-15.0.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:558d023b3df0bffe50a04e710bc87742de35060580a293c2a984299ed83bc4e4", size = 182195, upload-time = "2025-03-05T20:02:51.561Z" },1234 { url = "https://files.pythonhosted.org/packages/86/eb/20b6cdf273913d0ad05a6a14aed4b9a85591c18a987a3d47f20fa13dcc47/websockets-15.0.1-cp313-cp313-win32.whl", hash = "sha256:ba9e56e8ceeeedb2e080147ba85ffcd5cd0711b89576b83784d8605a7df455fa", size = 176393, upload-time = "2025-03-05T20:02:53.814Z" },1235 { url = "https://files.pythonhosted.org/packages/1b/6c/c65773d6cab416a64d191d6ee8a8b1c68a09970ea6909d16965d26bfed1e/websockets-15.0.1-cp313-cp313-win_amd64.whl", hash = "sha256:e09473f095a819042ecb2ab9465aee615bd9c2028e4ef7d933600a8401c79561", size = 176837, upload-time = "2025-03-05T20:02:55.237Z" },1382 { url = "https://files.pythonhosted.org/packages/36/db/3fff0bcbe339a6fa6a3b9e3fbc2bfb321ec2f4cd233692272c5a8d6cf801/websockets-15.0.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:5f4c04ead5aed67c8a1a20491d54cdfba5884507a48dd798ecaf13c74c4489f5", size = 175424, upload-time = "2025-03-05T20:02:56.505Z" },1383 { url = "https://files.pythonhosted.org/packages/46/e6/519054c2f477def4165b0ec060ad664ed174e140b0d1cbb9fafa4a54f6db/websockets-15.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:abdc0c6c8c648b4805c5eacd131910d2a7f6455dfd3becab248ef108e89ab16a", size = 173077, upload-time = "2025-03-05T20:02:58.37Z" },1384 { url = "https://files.pythonhosted.org/packages/1a/21/c0712e382df64c93a0d16449ecbf87b647163485ca1cc3f6cbadb36d2b03/websockets-15.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a625e06551975f4b7ea7102bc43895b90742746797e2e14b70ed61c43a90f09b", size = 173324, upload-time = "2025-03-05T20:02:59.773Z" },1385 { url = "https://files.pythonhosted.org/packages/1c/cb/51ba82e59b3a664df54beed8ad95517c1b4dc1a913730e7a7db778f21291/websockets-15.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d591f8de75824cbb7acad4e05d2d710484f15f29d4a915092675ad3456f11770", size = 182094, upload-time = "2025-03-05T20:03:01.827Z" },1386 { url = "https://files.pythonhosted.org/packages/fb/0f/bf3788c03fec679bcdaef787518dbe60d12fe5615a544a6d4cf82f045193/websockets-15.0.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:47819cea040f31d670cc8d324bb6435c6f133b8c7a19ec3d61634e62f8d8f9eb", size = 181094, upload-time = "2025-03-05T20:03:03.123Z" },1387 { url = "https://files.pythonhosted.org/packages/5e/da/9fb8c21edbc719b66763a571afbaf206cb6d3736d28255a46fc2fe20f902/websockets-15.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac017dd64572e5c3bd01939121e4d16cf30e5d7e110a119399cf3133b63ad054", size = 181397, upload-time = "2025-03-05T20:03:04.443Z" },1388 { url = "https://files.pythonhosted.org/packages/2e/65/65f379525a2719e91d9d90c38fe8b8bc62bd3c702ac651b7278609b696c4/websockets-15.0.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:4a9fac8e469d04ce6c25bb2610dc535235bd4aa14996b4e6dbebf5e007eba5ee", size = 181794, upload-time = "2025-03-05T20:03:06.708Z" },1389 { url = "https://files.pythonhosted.org/packages/d9/26/31ac2d08f8e9304d81a1a7ed2851c0300f636019a57cbaa91342015c72cc/websockets-15.0.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:363c6f671b761efcb30608d24925a382497c12c506b51661883c3e22337265ed", size = 181194, upload-time = "2025-03-05T20:03:08.844Z" },1390 { url = "https://files.pythonhosted.org/packages/98/72/1090de20d6c91994cd4b357c3f75a4f25ee231b63e03adea89671cc12a3f/websockets-15.0.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:2034693ad3097d5355bfdacfffcbd3ef5694f9718ab7f29c29689a9eae841880", size = 181164, upload-time = "2025-03-05T20:03:10.242Z" },1391 { url = "https://files.pythonhosted.org/packages/2d/37/098f2e1c103ae8ed79b0e77f08d83b0ec0b241cf4b7f2f10edd0126472e1/websockets-15.0.1-cp39-cp39-win32.whl", hash = "sha256:3b1ac0d3e594bf121308112697cf4b32be538fb1444468fb0a6ae4feebc83411", size = 176381, upload-time = "2025-03-05T20:03:12.77Z" },1392 { url = "https://files.pythonhosted.org/packages/75/8b/a32978a3ab42cebb2ebdd5b05df0696a09f4d436ce69def11893afa301f0/websockets-15.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:b7643a03db5c95c799b89b31c036d5f27eeb4d259c798e878d6937d71832b1e4", size = 176841, upload-time = "2025-03-05T20:03:14.367Z" },1236 { url = "https://files.pythonhosted.org/packages/02/9e/d40f779fa16f74d3468357197af8d6ad07e7c5a27ea1ca74ceb38986f77a/websockets-15.0.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:0c9e74d766f2818bb95f84c25be4dea09841ac0f734d1966f415e4edfc4ef1c3", size = 173109, upload-time = "2025-03-05T20:03:17.769Z" },1237 { url = "https://files.pythonhosted.org/packages/bc/cd/5b887b8585a593073fd92f7c23ecd3985cd2c3175025a91b0d69b0551372/websockets-15.0.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:1009ee0c7739c08a0cd59de430d6de452a55e42d6b522de7aa15e6f67db0b8e1", size = 173343, upload-time = "2025-03-05T20:03:19.094Z" },1238 { url = "https://files.pythonhosted.org/packages/fe/ae/d34f7556890341e900a95acf4886833646306269f899d58ad62f588bf410/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76d1f20b1c7a2fa82367e04982e708723ba0e7b8d43aa643d3dcd404d74f1475", size = 174599, upload-time = "2025-03-05T20:03:21.1Z" },1239 { url = "https://files.pythonhosted.org/packages/71/e6/5fd43993a87db364ec60fc1d608273a1a465c0caba69176dd160e197ce42/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f29d80eb9a9263b8d109135351caf568cc3f80b9928bccde535c235de55c22d9", size = 174207, upload-time = "2025-03-05T20:03:23.221Z" },1240 { url = "https://files.pythonhosted.org/packages/2b/fb/c492d6daa5ec067c2988ac80c61359ace5c4c674c532985ac5a123436cec/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b359ed09954d7c18bbc1680f380c7301f92c60bf924171629c5db97febb12f04", size = 174155, upload-time = "2025-03-05T20:03:25.321Z" },1241 { url = "https://files.pythonhosted.org/packages/68/a1/dcb68430b1d00b698ae7a7e0194433bce4f07ded185f0ee5fb21e2a2e91e/websockets-15.0.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:cad21560da69f4ce7658ca2cb83138fb4cf695a2ba3e475e0559e05991aa8122", size = 176884, upload-time = "2025-03-05T20:03:27.934Z" },1399 { url = "https://files.pythonhosted.org/packages/b7/48/4b67623bac4d79beb3a6bb27b803ba75c1bdedc06bd827e465803690a4b2/websockets-15.0.1-pp39-pypy39_pp73-macosx_10_15_x86_64.whl", hash = "sha256:7f493881579c90fc262d9cdbaa05a6b54b3811c2f300766748db79f098db9940", size = 173106, upload-time = "2025-03-05T20:03:29.404Z" },1400 { url = "https://files.pythonhosted.org/packages/ed/f0/adb07514a49fe5728192764e04295be78859e4a537ab8fcc518a3dbb3281/websockets-15.0.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:47b099e1f4fbc95b701b6e85768e1fcdaf1630f3cbe4765fa216596f12310e2e", size = 173339, upload-time = "2025-03-05T20:03:30.755Z" },1401 { url = "https://files.pythonhosted.org/packages/87/28/bd23c6344b18fb43df40d0700f6d3fffcd7cef14a6995b4f976978b52e62/websockets-15.0.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67f2b6de947f8c757db2db9c71527933ad0019737ec374a8a6be9a956786aaf9", size = 174597, upload-time = "2025-03-05T20:03:32.247Z" },1402 { url = "https://files.pythonhosted.org/packages/6d/79/ca288495863d0f23a60f546f0905ae8f3ed467ad87f8b6aceb65f4c013e4/websockets-15.0.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d08eb4c2b7d6c41da6ca0600c077e93f5adcfd979cd777d747e9ee624556da4b", size = 174205, upload-time = "2025-03-05T20:03:33.731Z" },1403 { url = "https://files.pythonhosted.org/packages/04/e4/120ff3180b0872b1fe6637f6f995bcb009fb5c87d597c1fc21456f50c848/websockets-15.0.1-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b826973a4a2ae47ba357e4e82fa44a463b8f168e1ca775ac64521442b19e87f", size = 174150, upload-time = "2025-03-05T20:03:35.757Z" },1404 { url = "https://files.pythonhosted.org/packages/cb/c3/30e2f9c539b8da8b1d76f64012f3b19253271a63413b2d3adb94b143407f/websockets-15.0.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:21c1fa28a6a7e3cbdc171c694398b6df4744613ce9b36b1a498e816787e28123", size = 176877, upload-time = "2025-03-05T20:03:37.199Z" },1242 { url = "https://files.pythonhosted.org/packages/fa/a8/5b41e0da817d64113292ab1f8247140aac61cbf6cfd085d6a0fa77f4984f/websockets-15.0.1-py3-none-any.whl", hash = "sha256:f7a866fbc1e97b5c617ee4116daaa09b722101d4a3c170c787450ba409f9736f", size = 169743, upload-time = "2025-03-05T20:03:39.41Z" },1243]14071408[[package]]1409name = "zipp"1410version = "3.22.0"1411source = { registry = "https://pypi.org/simple" }1412sdist = { url = "https://files.pythonhosted.org/packages/12/b6/7b3d16792fdf94f146bed92be90b4eb4563569eca91513c8609aebf0c167/zipp-3.22.0.tar.gz", hash = "sha256:dd2f28c3ce4bc67507bfd3781d21b7bb2be31103b51a4553ad7d90b84e57ace5", size = 25257, upload-time = "2025-05-26T14:46:32.217Z" }1413wheels = [1414 { url = "https://files.pythonhosted.org/packages/ad/da/f64669af4cae46f17b90798a827519ce3737d31dbafad65d391e49643dc4/zipp-3.22.0-py3-none-any.whl", hash = "sha256:fe208f65f2aca48b81f9e6fd8cf7b8b32c26375266b009b413d45306b6148343", size = 9796, upload-time = "2025-05-26T14:46:30.775Z" },1415]