Skip to content

Commit 7277aa3

Browse files
NazarioJLJohnny Nazario
authored andcommitted
Fix docstrings per feedback
1 parent f59c33f commit 7277aa3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pynamodb_attributes/unicode_datetime.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@ def __init__(
2828
**kwargs: Any,
2929
) -> None:
3030
"""
31-
:param force_tz: If set it will add timezone info to the value if absent before serializing
32-
:param force_utc: If set it will normalize the datetime to UTC
33-
:param fmt: If set it will use this value to convert to and from the string representaion
31+
:param force_tz: If set it will add timezone info to the `datetime` value if no `tzinfo` is currently
32+
set before serializing, defaults to `True`
33+
:param force_utc: If set it will normalize the `datetime` to UTC before serializing the value
34+
:param fmt: If set this value will be used to format the `datetime` object for serialization
35+
and deserialization
3436
"""
3537

3638
super().__init__(**kwargs)
37-
self._fmt = fmt
3839
self._force_tz = force_tz
3940
self._force_utc = force_utc
41+
self._fmt = fmt
4042

4143
def deserialize(self, value: str) -> datetime:
4244
return (

0 commit comments

Comments
 (0)