Skip to content

Commit

Permalink
Revise type of dotenv_path parameter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eaftan committed Jan 10, 2023
1 parent 787fd20 commit 979b36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _is_interactive():


def load_dotenv(
dotenv_path: Union[str, 'os.PathLike[str]', 'os.PathLike[bytes]', None] = None,
dotenv_path: Optional[Union[str, bytes, 'os.PathLike[Union[str, bytes]]', int]] = None,
stream: Optional[IO[str]] = None,
verbose: bool = False,
override: bool = False,
Expand Down

0 comments on commit 979b36b

Please sign in to comment.