File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,17 @@ def __init__(
28
28
** kwargs : Any ,
29
29
) -> None :
30
30
"""
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
34
36
"""
35
37
36
38
super ().__init__ (** kwargs )
37
- self ._fmt = fmt
38
39
self ._force_tz = force_tz
39
40
self ._force_utc = force_utc
41
+ self ._fmt = fmt
40
42
41
43
def deserialize (self , value : str ) -> datetime :
42
44
return (
You can’t perform that action at this time.
0 commit comments