We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f022c52 commit 6c3fd6aCopy full SHA for 6c3fd6a
documentation/TYPE_ANNOTATIONS.md
@@ -92,7 +92,7 @@ Here is a simple example of an API that does datetime addition.
92
93
94
@hug.get('/dateadd', examples="value=1973-04-10&addend=63")
95
- def dateadd(value: fields.DateTime(),
+ def dateadd(value: fields.Date(),
96
addend: fields.Int(validate=Range(min=1))):
97
"""Add a value to a date."""
98
delta = dt.timedelta(days=addend)
0 commit comments