You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/llms-full.txt
+63-6Lines changed: 63 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,7 @@ This example builds a JSON API payload with dynamic keys, nested structures, and
279
279
### What to notice
280
280
281
281
- The dynamic account id is used in a JSON key position: `"account-{account_id}"`
282
-
- Nested `dict`/`list` values are rendered as native JSON objects and arrays
282
+
- Nested `dict`/`list`/`tuple` values are rendered as native JSON objects and arrays
283
283
- String fragments like `"{display_name}-{first_role}"` stay readable
284
284
- Bare scalar assembly like `active-{first_role}` becomes a JSON string
285
285
@@ -301,6 +301,10 @@ Values passed to JSON interpolation slots must be JSON-serializable:
301
301
302
302
JSON rejects `float("inf")`, `float("nan")`, and non-string keys.
303
303
304
+
Nested `Template` objects are not rendered recursively when passed as interpolation values.
305
+
Compose templates with PEP 750 template concatenation before calling `render_data`,
306
+
`render_text`, or `render_result`.
307
+
304
308
## Profile
305
309
306
310
JSON currently supports one profile:
@@ -351,13 +355,17 @@ This example builds a TOML configuration with interpolated table headers, keys,
351
355
## Supported types
352
356
353
357
- `str`, `int`, `float`, `bool`
354
-
- `list` (rendered as TOML arrays)
358
+
- `list`, `tuple` (rendered as TOML arrays)
355
359
- `dict` (rendered as inline tables or nested tables)
356
360
- `datetime`, `date`, `time` (rendered as TOML-native datetime literals)
357
361
358
362
!!! warning
359
363
TOML has no null value — `None` is rejected. Offset-aware `time` values are also rejected.
360
364
365
+
Nested `Template` objects are not rendered recursively when passed as interpolation values.
366
+
Compose templates with PEP 750 template concatenation before calling `render_data`,
367
+
`render_text`, or `render_result`.
368
+
361
369
## Profiles
362
370
363
371
| Profile | Description | Default |
@@ -428,12 +436,16 @@ This example demonstrates YAML-specific features: anchors, aliases, tags, and bl
428
436
## Supported types
429
437
430
438
- `str`, `int`, `float`, `bool`, `None`
431
-
- `list` (rendered as YAML sequences)
439
+
- `list`, `tuple` (rendered as YAML sequences)
432
440
- `dict` (rendered as YAML mappings)
433
441
434
442
!!! warning
435
443
Although YAML 1.2.2 Core Schema supports `.inf` and `.nan`, this library rejects `float("inf")` and `float("nan")` to keep output portable across parsers. Anchor/tag fragments must be non-empty and whitespace-free.
436
444
445
+
Nested `Template` objects are not rendered recursively when passed as interpolation values.
446
+
Compose templates with PEP 750 template concatenation before calling `render_data`,
0 commit comments