Skip to content

Commit 9aea492

Browse files
committed
fix: remove a deprecation message
1 parent 61971a0 commit 9aea492

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

python/pydantic_core/_pydantic_core.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ def to_json(
378378
exclude_none: Whether to exclude fields that have a value of `None`.
379379
round_trip: Whether to enable serialization and validation round-trip support.
380380
timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'`, `'seconds_float'` or `'milliseconds_float'`.
381-
Note that `'float'` is deprecated in favour of `'seconds_float'`
382381
bytes_mode: How to serialize `bytes` objects, either `'utf8'`, `'base64'`, or `'hex'`.
383382
inf_nan_mode: How to serialize `Infinity`, `-Infinity` and `NaN` values, either `'null'`, `'constants'`, or `'strings'`.
384383
serialize_unknown: Attempt to serialize unknown types, `str(value)` will be used, if that fails
@@ -454,7 +453,6 @@ def to_jsonable_python(
454453
exclude_none: Whether to exclude fields that have a value of `None`.
455454
round_trip: Whether to enable serialization and validation round-trip support.
456455
timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'`, `'seconds_float'`, or`'milliseconds_float'`.
457-
Note that `'float'` is deprecated in favour of `'seconds_float'`
458456
bytes_mode: How to serialize `bytes` objects, either `'utf8'`, `'base64'`, or `'hex'`.
459457
inf_nan_mode: How to serialize `Infinity`, `-Infinity` and `NaN` values, either `'null'`, `'constants'`, or `'strings'`.
460458
serialize_unknown: Attempt to serialize unknown types, `str(value)` will be used, if that fails

0 commit comments

Comments
 (0)