diff --git a/README.md b/README.md index 86bf7d9..b9d25f7 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,9 @@ We rely on different `django` and `mypy` versions: | django-stubs | mypy version | django version | python version | ------------ | ---- | ---- | ---- | -| 1.3.0 | 0.750 | 2.2.x | ^3.6 +| 1.5.0 | 0.780 | 2.2.x \|\| 3.x | ^3.6 +| 1.4.0 | 0.770 | 2.2.x \|\| 3.x | ^3.6 +| 1.3.0 | 0.750 | 2.2.x \|\| 3.x | ^3.6 | 1.2.0 | 0.730 | 2.2.x | ^3.6 | 1.1.0 | 0.720 | 2.2.x | ^3.6 | 0.12.x | old semantic analyzer (<0.711), dmypy support | 2.1.x | ^3.6 diff --git a/dev-requirements.txt b/dev-requirements.txt index 37b2795..a845f69 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,5 @@ black -pytest-mypy-plugins==1.2.0 +pytest-mypy-plugins==1.3.0 psycopg2 flake8==3.7.9 flake8-pyi==19.3.0 diff --git a/scripts/enabled_test_modules.py b/scripts/enabled_test_modules.py index 4e01978..49e519e 100644 --- a/scripts/enabled_test_modules.py +++ b/scripts/enabled_test_modules.py @@ -185,6 +185,8 @@ IGNORED_ERRORS = { ], 'files': [ 'Incompatible types in assignment (expression has type "IOBase", variable has type "File")', + 'Argument 1 to "TextIOWrapper" has incompatible type "File"; expected "BinaryIO"', + 'Incompatible types in assignment (expression has type "BinaryIO", variable has type "File")', ], 'filtered_relation': [ 'has no attribute "name"', @@ -378,6 +380,7 @@ IGNORED_ERRORS = { 'responses': [ 'Argument 1 to "TextIOWrapper" has incompatible type "HttpResponse"; expected "IO[bytes]"', '"FileLike" has no attribute "closed"', + 'Argument 1 to "TextIOWrapper" has incompatible type "HttpResponse"; expected "BinaryIO"', ], 'reverse_lookup': [ "Cannot resolve keyword 'choice' into field" diff --git a/scripts/tests_extension_hook.py b/scripts/tests_extension_hook.py index f69d034..228cc76 100644 --- a/scripts/tests_extension_hook.py +++ b/scripts/tests_extension_hook.py @@ -1,5 +1,5 @@ -from pytest_mypy.collect import File -from pytest_mypy.item import YamlTestItem +from pytest_mypy_plugins.collect import File +from pytest_mypy_plugins.item import YamlTestItem def django_plugin_hook(test_item: YamlTestItem) -> None: diff --git a/setup.py b/setup.py index e66ed3c..b915b92 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ with open('README.md', 'r') as f: readme = f.read() dependencies = [ - 'mypy>=0.770,<0.780', + 'mypy>=0.780,<0.790', 'typing-extensions', 'django', ]