Skip to content

Commit eb3eab8

Browse files
committed
Fix type checking with latest Mypy (0.770)
1 parent 12439aa commit eb3eab8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dotenv/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def _is_interactive():
275275
current_file = __file__
276276

277277
while frame.f_code.co_filename == current_file:
278+
assert frame.f_back is not None
278279
frame = frame.f_back
279280
frame_filename = frame.f_code.co_filename
280281
path = os.path.dirname(os.path.abspath(frame_filename))

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ commands =
2222
skip_install = true
2323
deps =
2424
flake8
25-
mypy==0.761
25+
mypy
2626
commands =
2727
flake8 src tests
2828
mypy --python-version=3.8 src tests

0 commit comments

Comments
 (0)