@@ -28,15 +28,15 @@ The most common way to create a new :class:`Template` instance is to use the t-s
2828 >>> type (greeting)
2929 <class 'string.templatelib.Template'>
3030 >>> print (list (greeting))
31- ['Hello ', Interpolation('World'), '!']
31+ ['Hello ', Interpolation('World', 'name', None, '' ), '!']
3232
3333It is also possible to create a :class: `Template ` directly, using its constructor. This takes an arbitrary collection of strings and :class: `Interpolation ` instances:
3434
3535 >>> from string.templatelib import Interpolation, Template
3636 >>> name = " World"
3737 >>> greeting = Template(" Hello, " , Interpolation(name, " name" ), " !" )
3838 >>> print (list (greeting))
39- ['Hello, ', Interpolation('World'), '!']
39+ ['Hello, ', Interpolation('World', 'name', None, '' ), '!']
4040
4141.. class :: Template(*args)
4242
@@ -81,7 +81,7 @@ It is also possible to create a :class:`Template` directly, using its constructo
8181
8282 >>> name = " World"
8383 >>> print (t" Hello {name} !" .interpolations)
84- (Interpolation('World'),)
84+ (Interpolation('World', 'name', None, '' ),)
8585
8686
8787 .. attribute :: values
@@ -99,13 +99,13 @@ It is also possible to create a :class:`Template` directly, using its constructo
9999
100100 >>> name = " World"
101101 >>> print (list (t" Hello {name} !" ))
102- ['Hello ', Interpolation('World'), '!']
102+ ['Hello ', Interpolation('World', 'name', None, '' ), '!']
103103
104104 Empty strings are *not * included in the iteration:
105105
106106 >>> name = " World"
107107 >>> print (list (t" Hello {name}{name} " ))
108- ['Hello ', Interpolation('World'), Interpolation('World')]
108+ ['Hello ', Interpolation('World', 'name', None, '' ), Interpolation('World', 'name', None, ' ')]
109109
110110 :returns: An iterable of all the parts in the template.
111111 :rtype: typing.Iterator[str | Interpolation]
@@ -147,7 +147,7 @@ It is also possible to create a :class:`Template` directly, using its constructo
147147
148148 >>> value = 42
149149 >>> template = t" Value: {value:.2f } "
150- >> template.interpolations[0].value
150+ >>> template.interpolations[0 ].value
151151 42
152152
153153 .. property :: __match_args__
0 commit comments