The _parse_date, _parse_datetime, and _parse_time helpers use datetime.strptime(), triggering Ruff DTZ007 due to naive datetime construction.
Replace the manual format loops with the appropriate fromisoformat() APIs to:
- Remove the
DTZ007 warnings.
- Simplify the parsing logic.
- Preserve the existing supported date, datetime, and time formats.
Add/update regression tests to verify the existing parsing behavior remains unchanged.
The
_parse_date,_parse_datetime, and_parse_timehelpers usedatetime.strptime(), triggering RuffDTZ007due to naive datetime construction.Replace the manual format loops with the appropriate
fromisoformat()APIs to:DTZ007warnings.Add/update regression tests to verify the existing parsing behavior remains unchanged.