Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix flake8 errors.
  • Loading branch information
qnighy committed Mar 16, 2019
commit f743880975af226a9f30a4914409702122ac0e41
2 changes: 1 addition & 1 deletion src/dotenv/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
if TYPE_CHECKING:
text_type = Text # type: Type[Text]
else:
text_type = unicode if PY2 else str
text_type = unicode if PY2 else str # noqa
6 changes: 3 additions & 3 deletions src/dotenv/ipython.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import print_function

from IPython.core.magic import Magics, line_magic, magics_class # type: ignore
from IPython.core.magic_arguments import (argument, magic_arguments, # type: ignore
parse_argstring) # type: ignore
from IPython.core.magic import Magics, line_magic, magics_class # type: ignore
from IPython.core.magic_arguments import (argument, magic_arguments, # type: ignore
parse_argstring) # type: ignore

from .main import find_dotenv, load_dotenv

Expand Down
6 changes: 3 additions & 3 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import sys
from subprocess import Popen
import tempfile
from typing import (Any, Dict, Iterator, List, Match, NamedTuple, Optional,
Pattern, Union, TYPE_CHECKING, Text, IO, Tuple)
from typing import (Any, Dict, Iterator, List, Match, NamedTuple, Optional, # noqa
Pattern, Union, TYPE_CHECKING, Text, IO, Tuple) # noqa
import warnings
from collections import OrderedDict
from contextlib import contextmanager
Expand Down Expand Up @@ -178,7 +178,7 @@ def get(self, key):
if self.verbose:
warnings.warn("key %s not found in %s." % (key, self.dotenv_path)) # type: ignore

return None # NOTE: PEP8 compliance required by mypy
return None


def get_key(dotenv_path, key_to_get):
Expand Down