@@ -356,7 +356,7 @@ def to_json(
356
356
by_alias : bool = True ,
357
357
exclude_none : bool = False ,
358
358
round_trip : bool = False ,
359
- timedelta_mode : Literal ['iso8601' , 'float' , ' seconds_float' , 'milliseconds_float' ] = 'iso8601' ,
359
+ timedelta_mode : Literal ['iso8601' , 'seconds_float' , 'milliseconds_float' ] = 'iso8601' ,
360
360
bytes_mode : Literal ['utf8' , 'base64' , 'hex' ] = 'utf8' ,
361
361
inf_nan_mode : Literal ['null' , 'constants' , 'strings' ] = 'constants' ,
362
362
serialize_unknown : bool = False ,
@@ -377,7 +377,7 @@ def to_json(
377
377
by_alias: Whether to use the alias names of fields.
378
378
exclude_none: Whether to exclude fields that have a value of `None`.
379
379
round_trip: Whether to enable serialization and validation round-trip support.
380
- timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'`, `'seconds_float'`, `'milliseconds_float'`, `'float '`.
380
+ timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'`, `'seconds_float'` or `'milliseconds_float '`.
381
381
Note that `'float'` is deprecated in favour of `'seconds_float'`
382
382
bytes_mode: How to serialize `bytes` objects, either `'utf8'`, `'base64'`, or `'hex'`.
383
383
inf_nan_mode: How to serialize `Infinity`, `-Infinity` and `NaN` values, either `'null'`, `'constants'`, or `'strings'`.
@@ -432,7 +432,7 @@ def to_jsonable_python(
432
432
by_alias : bool = True ,
433
433
exclude_none : bool = False ,
434
434
round_trip : bool = False ,
435
- timedelta_mode : Literal ['iso8601' , 'float' , ' seconds_float' , 'milliseconds_float' ] = 'iso8601' ,
435
+ timedelta_mode : Literal ['iso8601' , 'seconds_float' , 'milliseconds_float' ] = 'iso8601' ,
436
436
bytes_mode : Literal ['utf8' , 'base64' , 'hex' ] = 'utf8' ,
437
437
inf_nan_mode : Literal ['null' , 'constants' , 'strings' ] = 'constants' ,
438
438
serialize_unknown : bool = False ,
@@ -453,7 +453,7 @@ def to_jsonable_python(
453
453
by_alias: Whether to use the alias names of fields.
454
454
exclude_none: Whether to exclude fields that have a value of `None`.
455
455
round_trip: Whether to enable serialization and validation round-trip support.
456
- timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'`, `'seconds_float'`, `'milliseconds_float'`, `'float '`.
456
+ timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'`, `'seconds_float'`, or `'milliseconds_float'`.
457
457
Note that `'float'` is deprecated in favour of `'seconds_float'`
458
458
bytes_mode: How to serialize `bytes` objects, either `'utf8'`, `'base64'`, or `'hex'`.
459
459
inf_nan_mode: How to serialize `Infinity`, `-Infinity` and `NaN` values, either `'null'`, `'constants'`, or `'strings'`.
0 commit comments