Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions scripts/typecheck_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@
"test_permissions.py": [
'"ResolverMatch" has incompatible type "str"; expected "Callable[..., Any]"',
"_SupportsHasPermission",
"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',
'"<typing special form>" not callable',
'<nothing> not callable',
],
"test_relations.py": [
'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"',
Expand Down Expand Up @@ -188,8 +188,6 @@
"base class",
'"CharField" has incompatible type "Collection[Any]"',
'Name "foo" is not defined',
'Unsupported left operand type for | ("ReturnDict")',
'Unsupported left operand type for | ("Dict[str, str]")',
],
"test_serializer_lists.py": [
'Name "foo" is not defined',
Expand All @@ -208,7 +206,6 @@
"test_testing.py": [
'"Client" has no attribute "force_authenticate"',
'"Client" has no attribute "credentials"',
'has no attribute "addClassCleanup"',
],
"test_throttling.py": [
'has incompatible type "Dict[<nothing>, <nothing>]"',
Expand Down Expand Up @@ -237,6 +234,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")',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}
Expand Down