Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh Kumar committed May 22, 2019
1 parent b1e7cd5 commit e999933
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dotenv/main.py
Expand Up @@ -8,7 +8,7 @@
import sys
from subprocess import Popen
import tempfile
from typing import (Dict, Iterator, List, Match, Optional, # noqa
from typing import (Any, Dict, Iterator, List, Match, Optional, # noqa
Pattern, Union, TYPE_CHECKING, Text, IO, Tuple)
import warnings
from collections import OrderedDict
Expand Down Expand Up @@ -266,13 +266,13 @@ def find_dotenv(filename='.env', raise_error_if_not_found=False, usecwd=False):


def load_dotenv(dotenv_path=None, stream=None, **kwargs):
# type: (Union[Text, _PathLike, None], Optional[_StringIO], bool, Union[None, Text]) -> bool
# type: (Union[Text, _PathLike, None], Optional[_StringIO], **Any) -> None
f = dotenv_path or stream or find_dotenv()
return DotEnv(f, **kwargs).set_as_environment_variables()


def dotenv_values(dotenv_path=None, stream=None, **kwargs):
# type: (Union[Text, _PathLike, None], Optional[_StringIO], Union[None, Text]) -> Dict[Text, Text]
# type: (Union[Text, _PathLike, None], Optional[_StringIO], **Any) -> Dict[Text, Text]
f = dotenv_path or stream or find_dotenv()
return DotEnv(f, **kwargs).dict()

Expand Down

0 comments on commit e999933

Please sign in to comment.