From 153e9e4ed698710251c254b96b62ec41d5880b73 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 24 Nov 2021 17:25:04 -0500 Subject: [PATCH] [+] Add precondition --- src/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.py b/src/utils.py index 2a419d9..ee200e0 100644 --- a/src/utils.py +++ b/src/utils.py @@ -148,6 +148,7 @@ def parse_date(iso: str) -> datetime: Preconditions: - iso is the output of datetime.isoformat() (In a format like "2021-10-20T23:50:14") + - iso is a valid date (this function does not check for the validity of the input) :param iso: Input date :return: Datetime object