Skip to content

Commit

Permalink
Fix type checking with latest Mypy (0.770)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbc2 committed Apr 12, 2020
1 parent 12439aa commit eb3eab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def _is_interactive():
current_file = __file__

while frame.f_code.co_filename == current_file:
assert frame.f_back is not None
frame = frame.f_back
frame_filename = frame.f_code.co_filename
path = os.path.dirname(os.path.abspath(frame_filename))
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ commands =
skip_install = true
deps =
flake8
mypy==0.761
mypy
commands =
flake8 src tests
mypy --python-version=3.8 src tests
Expand Down

0 comments on commit eb3eab8

Please # to comment.