Skip to content

Commit 5aed764

Browse files
committed
fix: Clarification and mistake in the docs
1 parent 155f943 commit 5aed764

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ There are two ways to do it:
430430
```python
431431
import pytz
432432

433-
item.to_dict(timezone=pytz.timezone('Europe/Moscow'))
433+
item.to_dict(tzinfo=pytz.timezone('Europe/Madrid'))
434434
```
435435
- But if you do not want to write this code in every function, you should define
436436
timezone logic in your custom mixin (how to use customized mixin see [Custom formats](#Custom-formats))

sqlalchemy_serializer/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def serialize(self, value, key=_UNSPECIFIED):
288288
289289
Args:
290290
value: The value to be serialized.
291-
key: The key to be serialized.
291+
key: The key associated with the value (for nested structures).
292292
293293
Returns:
294294
The serialized value.

0 commit comments

Comments
 (0)