Skip to content

Commit 183e59e

Browse files
committed
Allow only string paths, not byte paths
These paths can flow into `shutil.move`, which does not accept byte paths or (int) file descriptors. See python/typeshed#6832
1 parent 979b36b commit 183e59e

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: Optional[Union[str, bytes, 'os.PathLike[Union[str, bytes]]', int]] = None,
308+
dotenv_path: Optional[Union[str, 'os.PathLike[str]']] = None,
309309
stream: Optional[IO[str]] = None,
310310
verbose: bool = False,
311311
override: bool = False,

0 commit comments

Comments
 (0)