Skip to content

Commit

Permalink
minor modification of example intro
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Jan 20, 2024
1 parent 9584dc5 commit 54c9f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/functional_serializers.py
Expand Up @@ -83,7 +83,7 @@ class WrapSerializer:
"""Wrap serializers receive the raw inputs along with a handler function that applies the standard serialization
logic, and can modify the resulting value before returning it as the final output of serialization.
A scenario in which a model's subclass containing datetime fields is transformed to UTC without modifying subclass.
For example, here's a scenario in which a wrap serializer transforms timezones to UTC **and** utilizes the existing `datetime` serialization logic.
```python
from datetime import datetime, timezone
Expand Down

0 comments on commit 54c9f0c

Please sign in to comment.