@@ -7,6 +7,7 @@ from . import resolver as resolver # Help mypy a bit; this is implied by loader
7
7
from .constructor import BaseConstructor
8
8
from .cyaml import *
9
9
from .dumper import *
10
+ from .dumper import _Inf
10
11
from .emitter import _WriteStream
11
12
from .error import *
12
13
from .events import *
@@ -46,7 +47,7 @@ def emit(
46
47
Dumper = ...,
47
48
canonical : bool | None = ...,
48
49
indent : int | None = ...,
49
- width : int | None = ...,
50
+ width : int | _Inf | None = ...,
50
51
allow_unicode : bool | None = ...,
51
52
line_break : str | None = ...,
52
53
): ...
@@ -57,7 +58,7 @@ def serialize_all(
57
58
Dumper = ...,
58
59
canonical : bool | None = ...,
59
60
indent : int | None = ...,
60
- width : int | None = ...,
61
+ width : int | _Inf | None = ...,
61
62
allow_unicode : bool | None = ...,
62
63
line_break : str | None = ...,
63
64
encoding : str | None = ...,
@@ -73,7 +74,7 @@ def serialize_all(
73
74
Dumper = ...,
74
75
canonical : bool | None = ...,
75
76
indent : int | None = ...,
76
- width : int | None = ...,
77
+ width : int | _Inf | None = ...,
77
78
allow_unicode : bool | None = ...,
78
79
line_break : str | None = ...,
79
80
encoding : str | None = ...,
@@ -90,7 +91,7 @@ def serialize(
90
91
* ,
91
92
canonical : bool | None = ...,
92
93
indent : int | None = ...,
93
- width : int | None = ...,
94
+ width : int | _Inf | None = ...,
94
95
allow_unicode : bool | None = ...,
95
96
line_break : str | None = ...,
96
97
encoding : str | None = ...,
@@ -107,7 +108,7 @@ def serialize(
107
108
* ,
108
109
canonical : bool | None = ...,
109
110
indent : int | None = ...,
110
- width : int | None = ...,
111
+ width : int | _Inf | None = ...,
111
112
allow_unicode : bool | None = ...,
112
113
line_break : str | None = ...,
113
114
encoding : str | None = ...,
@@ -125,7 +126,7 @@ def dump_all(
125
126
default_flow_style : bool | None = ...,
126
127
canonical : bool | None = ...,
127
128
indent : int | None = ...,
128
- width : int | None = ...,
129
+ width : int | _Inf | None = ...,
129
130
allow_unicode : bool | None = ...,
130
131
line_break : str | None = ...,
131
132
encoding : str | None = ...,
@@ -144,7 +145,7 @@ def dump_all(
144
145
default_flow_style : bool | None = ...,
145
146
canonical : bool | None = ...,
146
147
indent : int | None = ...,
147
- width : int | None = ...,
148
+ width : int | _Inf | None = ...,
148
149
allow_unicode : bool | None = ...,
149
150
line_break : str | None = ...,
150
151
encoding : str | None = ...,
@@ -164,7 +165,7 @@ def dump(
164
165
default_flow_style : bool | None = ...,
165
166
canonical : bool | None = ...,
166
167
indent : int | None = ...,
167
- width : int | None = ...,
168
+ width : int | _Inf | None = ...,
168
169
allow_unicode : bool | None = ...,
169
170
line_break : str | None = ...,
170
171
encoding : str | None = ...,
@@ -184,7 +185,7 @@ def dump(
184
185
default_flow_style : bool | None = ...,
185
186
canonical : bool | None = ...,
186
187
indent : int | None = ...,
187
- width : int | None = ...,
188
+ width : int | _Inf | None = ...,
188
189
allow_unicode : bool | None = ...,
189
190
line_break : str | None = ...,
190
191
encoding : str | None = ...,
@@ -203,7 +204,7 @@ def safe_dump_all(
203
204
default_flow_style : bool | None = ...,
204
205
canonical : bool | None = ...,
205
206
indent : int | None = ...,
206
- width : int | None = ...,
207
+ width : int | _Inf | None = ...,
207
208
allow_unicode : bool | None = ...,
208
209
line_break : str | None = ...,
209
210
encoding : str | None = ...,
@@ -222,7 +223,7 @@ def safe_dump_all(
222
223
default_flow_style : bool | None = ...,
223
224
canonical : bool | None = ...,
224
225
indent : int | None = ...,
225
- width : int | None = ...,
226
+ width : int | _Inf | None = ...,
226
227
allow_unicode : bool | None = ...,
227
228
line_break : str | None = ...,
228
229
encoding : str | None = ...,
@@ -241,7 +242,7 @@ def safe_dump(
241
242
default_flow_style : bool | None = ...,
242
243
canonical : bool | None = ...,
243
244
indent : int | None = ...,
244
- width : int | None = ...,
245
+ width : int | _Inf | None = ...,
245
246
allow_unicode : bool | None = ...,
246
247
line_break : str | None = ...,
247
248
encoding : str | None = ...,
@@ -260,7 +261,7 @@ def safe_dump(
260
261
default_flow_style : bool | None = ...,
261
262
canonical : bool | None = ...,
262
263
indent : int | None = ...,
263
- width : int | None = ...,
264
+ width : int | _Inf | None = ...,
264
265
allow_unicode : bool | None = ...,
265
266
line_break : str | None = ...,
266
267
encoding : str | None = ...,
0 commit comments