Skip to content

Commit 6455889

Browse files
Add docstring.
1 parent a93f732 commit 6455889

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tdom/transformer.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,19 @@ def walk_dynamic_template(
440440
bf: list[str], template: Template, text_t: Template, container_tag: str
441441
) -> t.Iterable[tuple[InterpolatorProto, Template, InterpolateInfo]]:
442442
"""
443-
Walk a text template when we determine we can at runtime.
443+
Walk a `Text()` template that we determined was usable at runtime.
444+
445+
This happens when a container tag isn't resolvable at parse time and we
446+
have to discover it at runtime.
447+
448+
bf:
449+
The buffer to write strings out to.
450+
template:
451+
The original values template.
452+
text_t:
453+
A template with i_index references to the original values template.
454+
container_tag:
455+
The tag of the containing element.
444456
"""
445457
for part in text_t:
446458
if isinstance(part, str):

0 commit comments

Comments
 (0)