File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Template strings
2424Template strings are a mechanism for custom string processing.
2525They have the full flexibility of Python's :ref: `f-strings `,
2626but return a :class: `Template ` instance that gives access
27- to the static and interpolated (in curly braces ) parts of a string
27+ to the static and interpolated (in curly brackets ) parts of a string
2828*before * they are combined.
2929
3030To write a t-string, use a ``'t' `` prefix instead of an ``'f' ``, like so:
@@ -259,8 +259,8 @@ Types
259259 :type: str
260260
261261 For interpolations created by t-string literals, :attr: `!expression `
262- is the expression text found inside the curly braces (``{ `` & ``} ``),
263- including any whitespace, excluding the curly braces themselves,
262+ is the expression text found inside the curly brackets (``{ `` & ``} ``),
263+ including any whitespace, excluding the curly brackets themselves,
264264 and ending before the first ``! ``, ``: ``, or ``= `` if any is present.
265265 For manually created interpolations, :attr: `!expression ` is the arbitrary
266266 string provided when constructing the interpolation instance.
You can’t perform that action at this time.
0 commit comments