Skip to content

Commit

Permalink
Fix PathType typing in case of sequence (#402)
Browse files Browse the repository at this point in the history
Co-authored-by: Hasan Ramezani <[email protected]>
  • Loading branch information
just-maiyak and hramezani authored Sep 16, 2024
1 parent fa21884 commit b680531
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pydantic_settings/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@
Dict,
Generic,
Iterator,
List,
Mapping,
NoReturn,
Optional,
Sequence,
Tuple,
TypeVar,
Union,
cast,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b680531

Please sign in to comment.