Skip to content

Commit aa1ca5e

Browse files
Merge pull request #797 from Simon-Ince/documentation-python-marshmallow-datetime
corrected marshmallow example to use the correct date format
2 parents f022c52 + 6c3fd6a commit aa1ca5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/TYPE_ANNOTATIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Here is a simple example of an API that does datetime addition.
9292

9393

9494
@hug.get('/dateadd', examples="value=1973-04-10&addend=63")
95-
def dateadd(value: fields.DateTime(),
95+
def dateadd(value: fields.Date(),
9696
addend: fields.Int(validate=Range(min=1))):
9797
"""Add a value to a date."""
9898
delta = dt.timedelta(days=addend)

0 commit comments

Comments
 (0)