We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DotenvType
str
1 parent 474ed0a commit 3c4613dCopy full SHA for 3c4613d
pydantic_settings/sources.py
@@ -21,7 +21,7 @@
21
from pydantic_settings.main import BaseSettings
22
23
24
-DotenvType = Union[Path, List[Path], Tuple[Path, ...]]
+DotenvType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]]
25
26
# This is used as default value for `_env_file` in the `BaseSettings` class and
27
# `env_file` in `DotEnvSettingsSource` so the default can be distinguished from `None`.
0 commit comments