Skip to content

Commit 3c4613d

Browse files
authored
Improve DotenvType to accept str (#96)
1 parent 474ed0a commit 3c4613d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_settings/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from pydantic_settings.main import BaseSettings
2222

2323

24-
DotenvType = Union[Path, List[Path], Tuple[Path, ...]]
24+
DotenvType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]]
2525

2626
# This is used as default value for `_env_file` in the `BaseSettings` class and
2727
# `env_file` in `DotEnvSettingsSource` so the default can be distinguished from `None`.

0 commit comments

Comments
 (0)