Skip to content

Commit b593d78

Browse files
committed
Bump mypy version
1 parent 987eff8 commit b593d78

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

flake8_encodings/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949

5050
if TYPE_CHECKING:
5151
# 3rd party
52-
from jedi import Script # type: ignore
53-
from jedi.api.classes import Name # type: ignore
52+
from jedi import Script
53+
from jedi.api.classes import Name # type: ignore[import]
5454

5555
__author__: str = "Dominic Davis-Foster"
5656
__copyright__: str = "2020-2021 Dominic Davis-Foster"
@@ -185,7 +185,7 @@ class ClassVisitor(Visitor):
185185
def __init__(self):
186186
try:
187187
# 3rd party
188-
import jedi
188+
import jedi # type: ignore[import]
189189
except ImportError as e:
190190
exc = e.__class__("This class requires 'jedi' to be installed but it could not be imported.")
191191
exc.__traceback__ = e.__traceback__

tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
try:
1414
# 3rd party
15-
import jedi # type: ignore
15+
import jedi # type: ignore[import] # noqa: F401
1616
has_jedi = True
1717
except ImportError:
1818
has_jedi = False

tests/test_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
try:
1414
# 3rd party
15-
import jedi # type: ignore
15+
import jedi # type: ignore[import] # noqa: F401
1616
has_jedi = True
1717
except ImportError:
1818
has_jedi = False

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ignore_errors = True
105105
changedir = {toxinidir}
106106
extras = classes
107107
deps =
108-
mypy==0.942
108+
mypy==0.971
109109
-r{toxinidir}/tests/requirements.txt
110110
-r{toxinidir}/stubs.txt
111111
commands = mypy flake8_encodings tests {posargs}

0 commit comments

Comments
 (0)