cast.cast_str_to_timedelta(): Add conversion method

Make cast.from_str() accept time strings.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-05-28 11:12:49 +02:00
commit 9c13381e7a
2 changed files with 19 additions and 2 deletions

View file

@ -14,7 +14,7 @@ jw-maintainer = jan
libname = none
[pkg.requires.os]
run = python3-magic, python3-termcolor, mypy
run = mypy, python3-magic, python3-termcolor, python3-pytimeparse
[pkg.requires.jw]
devel = jw-python-run = VERSION-REVISION, jw-build-devel = VERSION