Make docs happy

This commit is contained in:
Melissa LeBlanc-Williams 2021-02-18 10:16:17 -08:00
parent 169afbe2c0
commit 4252da7a69

View file

@ -660,7 +660,10 @@ class date:
@classmethod
def fromisoformat(cls, date_string):
"""Return a date object constructed from an ISO date format."""
"""Return a date object constructed from an ISO date format.
Valid format is YYYY-MM-DD
"""
match = _re.match(
r"([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])", date_string
)
@ -1220,8 +1223,9 @@ class datetime(date):
@classmethod
def fromisoformat(cls, date_string, tz=None):
"""Return a date object constructed from an ISO date format.
YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]]
"""Return a datetime object constructed from an ISO date format.
Valid format is YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]]
"""
match = _re.match(
(