Update docstring

This commit is contained in:
discopatrick 2017-04-26 23:46:17 +01:00
parent b8e1c5675e
commit 05f0072363

View file

@ -538,7 +538,8 @@ class Period(object):
def __init__(self, date, precision):
"""Create a period with the given date (a `datetime` object) and
precision (a string, one of "year", "month", or "day").
precision (a string, one of "year", "month", "day", "hour", "minute", or
"second").
"""
if precision not in Period.precisions:
raise ValueError(u'Invalid precision {0}'.format(precision))