fix error for python version 3.9
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
|
||||||
from pathlib import Path
|
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
|
# 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)
|
# 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(
|
def check_email_existence(
|
||||||
file_path: str | Path,
|
file_path: Union[str, Path],
|
||||||
mail_list: Iterable,
|
mail_list: Iterable,
|
||||||
exclude_domains: Optional[Set[str]] = None,
|
exclude_domains: Optional[Set[str]] = None,
|
||||||
verbose: bool = True,
|
verbose: bool = True,
|
||||||
|
|||||||
Reference in New Issue
Block a user