File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,20 +154,20 @@ to deques are:
154
154
- `Deque[T]`
155
155
- `deque[T]`
156
156
157
- In all cases, a new ** unbounded** deque (`maxlen=None ` ) will be returned, so this operation can be used to
158
- copy an iterable into a deque.
157
+ In all cases, a new ** unbounded** deque (`maxlen=None ` ) will be returned,
158
+ so this operation can be used to copy an iterable into a deque.
159
159
If you want to convert into bounded `deque` , registering a custom structuring hook is a good approach.
160
160
161
161
```{doctest}
162
162
>> > cattrs.structure((1 , 2 , 3 ), deque[int ])
163
- [1 , 2 , 3 ]
163
+ deque( [1 , 2 , 3 ])
164
164
```
165
165
166
166
These generic types are composable with all other converters.
167
167
168
168
```{doctest}
169
169
>> > cattrs.structure((1 , None , 3 ), deque[Optional[str ]])
170
- [' 1' , None , ' 3' ]
170
+ deque( [' 1' , None , ' 3' ])
171
171
```
172
172
173
173
```{versionadded} 23.1 .0
You can’t perform that action at this time.
0 commit comments