Skip to content

Commit

Permalink
Allow only string paths, not byte paths
Browse files Browse the repository at this point in the history
These paths can flow into `shutil.move`, which does not accept byte
paths or (int) file descriptors.  See python/typeshed#6832
  • Loading branch information
eaftan committed Jan 10, 2023
1 parent 979b36b commit 183e59e
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: Optional[Union[str, bytes, 'os.PathLike[Union[str, bytes]]', int]] = None,
dotenv_path: Optional[Union[str, 'os.PathLike[str]']] = None,
stream: Optional[IO[str]] = None,
verbose: bool = False,
override: bool = False,
Expand Down

0 comments on commit 183e59e

Please sign in to comment.