From 2e69104706f3c03d5f59faf56fa3df98daa0dc33 Mon Sep 17 00:00:00 2001 From: Klaus Rettinghaus Date: Wed, 31 Jul 2024 15:29:52 +0200 Subject: [PATCH] style: adding one more hint --- edtf/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edtf/convert.py b/edtf/convert.py index 581b76a..ee03f36 100644 --- a/edtf/convert.py +++ b/edtf/convert.py @@ -60,7 +60,7 @@ def struct_time_to_datetime(st: struct_time) -> datetime: return datetime(*st[:6]) -def trim_struct_time(st: struct_time, strip_time=False) -> struct_time: +def trim_struct_time(st: struct_time, strip_time: bool = False) -> struct_time: """ Return a `struct_time` based on the one provided but with the extra fields `tm_wday`, `tm_yday`, and `tm_isdst` reset to default values.