diff --git a/scripts/typecheck_tests.py b/scripts/typecheck_tests.py index bf71f3561..1b215d3ed 100644 --- a/scripts/typecheck_tests.py +++ b/scripts/typecheck_tests.py @@ -157,6 +157,8 @@ "Invalid type alias: expression is not a valid type", '"object" not callable', 'Cannot assign multiple types to name "composed_perm" without an explicit "Type[...]" annotation', + '"" not callable', + " not callable", ], "test_relations.py": [ 'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"', @@ -237,6 +239,7 @@ "rest_framework.decorators", 'Argument 1 to "include" has incompatible type "Tuple[List[object], str]"', 'Incompatible types in assignment (expression has type "Type[FakeResolverMatch]", variable has type "Optional[ResolverMatch]"', # noqa: E501 + '"None" not callable', ], "test_viewsets.py": [ '(expression has type "None", variable has type "Request")', diff --git a/setup.py b/setup.py index 13bec7e45..5ecafe7e8 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def find_stub_files(name): ] extras_require = { - "compatible-mypy": ["mypy>=0.991,<0.1000"], + "compatible-mypy": ["mypy>=1.0,<1.1"], "coreapi": ["coreapi>=2.0.0"], "markdown": ["types-Markdown>=0.1.5"], }