Skip to content

Commit b680531

Browse files
Fix PathType typing in case of sequence (#402)
Co-authored-by: Hasan Ramezani <[email protected]>
1 parent fa21884 commit b680531

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pydantic_settings/sources.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@
2626
Dict,
2727
Generic,
2828
Iterator,
29-
List,
3029
Mapping,
3130
NoReturn,
3231
Optional,
3332
Sequence,
34-
Tuple,
3533
TypeVar,
3634
Union,
3735
cast,
@@ -108,8 +106,8 @@ def import_azure_key_vault() -> None:
108106
) from e
109107

110108

111-
DotenvType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]]
112-
PathType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]]
109+
DotenvType = Union[Path, str, Sequence[Union[Path, str]]]
110+
PathType = Union[Path, str, Sequence[Union[Path, str]]]
113111
DEFAULT_PATH: PathType = Path('')
114112

115113
# This is used as default value for `_env_file` in the `BaseSettings` class and

0 commit comments

Comments
 (0)