Skip to content

Commit 4252da7

Browse files
committed
Make docs happy
1 parent 169afbe commit 4252da7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

adafruit_datetime.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,10 @@ def fromordinal(cls, ordinal):
660660

661661
@classmethod
662662
def fromisoformat(cls, date_string):
663-
"""Return a date object constructed from an ISO date format."""
663+
"""Return a date object constructed from an ISO date format.
664+
Valid format is YYYY-MM-DD
665+
666+
"""
664667
match = _re.match(
665668
r"([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])", date_string
666669
)
@@ -1220,8 +1223,9 @@ def fromtimestamp(cls, timestamp, tz=None):
12201223

12211224
@classmethod
12221225
def fromisoformat(cls, date_string, tz=None):
1223-
"""Return a date object constructed from an ISO date format.
1224-
YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]]
1226+
"""Return a datetime object constructed from an ISO date format.
1227+
Valid format is YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]]
1228+
12251229
"""
12261230
match = _re.match(
12271231
(

0 commit comments

Comments
 (0)