Skip to content

Commit 979b36b

Browse files
committed
Revise type of dotenv_path parameter
Based on PR feedback and typeshed's type hint for the built-in open() function: https://github.com/python/typeshed/blob/e2d67bf7034f68c07bd35150247e58e0817725d9/stdlib/builtins.pyi#L1421
1 parent 787fd20 commit 979b36b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotenv/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def _is_interactive():
305305

306306

307307
def load_dotenv(
308-
dotenv_path: Union[str, 'os.PathLike[str]', 'os.PathLike[bytes]', None] = None,
308+
dotenv_path: Optional[Union[str, bytes, 'os.PathLike[Union[str, bytes]]', int]] = None,
309309
stream: Optional[IO[str]] = None,
310310
verbose: bool = False,
311311
override: bool = False,

0 commit comments

Comments
 (0)