From b932989e087dd4b8a85018e5f05c4339585726b1 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 21 Mar 2026 10:32:31 +0100 Subject: [PATCH] fix error for python version 3.9 --- src/utils/contacts/check_email_existence.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/contacts/check_email_existence.py b/src/utils/contacts/check_email_existence.py index 96354e0..f162664 100755 --- a/src/utils/contacts/check_email_existence.py +++ b/src/utils/contacts/check_email_existence.py @@ -1,8 +1,8 @@ +import logging import os import sys -import logging from pathlib import Path -from typing import Iterable, List, Optional, Set, Any +from typing import Iterable, List, Optional, Set, Any, Union # Ensure project root is on sys.path so imports like 'src.*' work when running this # file directly (python src/utils/contacts/check_email_existence.py) @@ -41,7 +41,7 @@ def _normalize_email(email: Optional[str]) -> Optional[str]: def check_email_existence( - file_path: str | Path, + file_path: Union[str, Path], mail_list: Iterable, exclude_domains: Optional[Set[str]] = None, verbose: bool = True,