Skip to content

Commit 6c3fd6a

Browse files
committed
corrected marshmallow example to use the correct date format
1 parent f022c52 commit 6c3fd6a

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)