diff --git a/pydantic_settings/sources.py b/pydantic_settings/sources.py index 020d8df..9bb5424 100644 --- a/pydantic_settings/sources.py +++ b/pydantic_settings/sources.py @@ -26,12 +26,10 @@ Dict, Generic, Iterator, - List, Mapping, NoReturn, Optional, Sequence, - Tuple, TypeVar, Union, cast, @@ -108,8 +106,8 @@ def import_azure_key_vault() -> None: ) from e -DotenvType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]] -PathType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]] +DotenvType = Union[Path, str, Sequence[Union[Path, str]]] +PathType = Union[Path, str, Sequence[Union[Path, str]]] DEFAULT_PATH: PathType = Path('') # This is used as default value for `_env_file` in the `BaseSettings` class and