Skip to content

Commit 1e7cfe9

Browse files
Upgrade to Mypy 1.0 (#339)
1 parent bf9d383 commit 1e7cfe9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/typecheck_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
157157
"Invalid type alias: expression is not a valid type",
158158
'"object" not callable',
159159
'Cannot assign multiple types to name "composed_perm" without an explicit "Type[...]" annotation',
160+
'"<typing special form>" not callable',
161+
"<nothing> not callable",
160162
],
161163
"test_relations.py": [
162164
'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"',
@@ -237,6 +239,7 @@
237239
"rest_framework.decorators",
238240
'Argument 1 to "include" has incompatible type "Tuple[List[object], str]"',
239241
'Incompatible types in assignment (expression has type "Type[FakeResolverMatch]", variable has type "Optional[ResolverMatch]"', # noqa: E501
242+
'"None" not callable',
240243
],
241244
"test_viewsets.py": [
242245
'(expression has type "None", variable has type "Request")',

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def find_stub_files(name):
2828
]
2929

3030
extras_require = {
31-
"compatible-mypy": ["mypy>=0.991,<0.1000"],
31+
"compatible-mypy": ["mypy>=1.0,<1.1"],
3232
"coreapi": ["coreapi>=2.0.0"],
3333
"markdown": ["types-Markdown>=0.1.5"],
3434
}

0 commit comments

Comments
 (0)