Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _get_stream(self) -> Iterator[IO[str]]:
)
yield io.StringIO('')

def dict(self) -> Dict[str, Optional[str]]:
def dict(self) -> Union[Dict[str, Optional[str]], OrderedDict[str, Optional[str]]]:
"""Return dotenv as dict"""
if self._dict:
return self._dict
Expand Down Expand Up @@ -364,7 +364,7 @@ def dotenv_values(
verbose: bool = False,
interpolate: bool = True,
encoding: Optional[str] = "utf-8",
) -> Dict[str, Optional[str]]:
) -> Union[Dict[str, Optional[str]], OrderedDict[str, Optional[str]]]:
"""
Parse a .env file and return its content as a dict.

Expand Down