Skip to content

Commit

Permalink
Fixed type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Johnstone committed Oct 28, 2024
1 parent 4d505f2 commit 2da4ced
Showing 1 changed file with 2 additions and 2 deletions.
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) -> 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]]:
) -> Dict[str, Optional[str]] | OrderedDict[str, Optional[str]]:
"""
Parse a .env file and return its content as a dict.
Expand Down

0 comments on commit 2da4ced

Please sign in to comment.