From 8f8cebdf11a519b8017520512739a1fc294e67e1 Mon Sep 17 00:00:00 2001 From: Soma Nagy Date: Mon, 15 Jul 2024 20:51:26 +0200 Subject: [PATCH] Mypy fix --- hun_date_parser/duration_parser/duration_parsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hun_date_parser/duration_parser/duration_parsers.py b/hun_date_parser/duration_parser/duration_parsers.py index 86119da..a64c244 100644 --- a/hun_date_parser/duration_parser/duration_parsers.py +++ b/hun_date_parser/duration_parser/duration_parsers.py @@ -1,4 +1,4 @@ -from typing import List, TypedDict, Optional +from typing import TypedDict, Optional, Sequence import re from hun_date_parser.utils import DateTimePartConatiner, remove_accent, word_to_num, Minute from hun_date_parser.date_parser.patterns import R_HOUR_MIN_D, R_HOUR_HOUR_D, R_HOUR_D @@ -6,7 +6,7 @@ class DateParts(TypedDict): match: str - date_parts: List[DateTimePartConatiner] + date_parts: Sequence[DateTimePartConatiner] def convert_hour_to_minutes(hour_str: Optional[str]) -> float: